Ada Bare Bones: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
No edit summary |
m system.ads needs to be placed into rts/boards/i386/adainclude/ instead of rts/boards/i386/ |
||
Line 289: | Line 289: | ||
Every Ada program must have access to the System package, this essentially tells the compiler what kind of hardware we are building for, therefore there will be 1 system.ads file per architecture your kernel supports. |
Every Ada program must have access to the System package, this essentially tells the compiler what kind of hardware we are building for, therefore there will be 1 system.ads file per architecture your kernel supports. |
||
Copy a system.ads from GCC that matches the target you are working with, in our case this is gcc-<version>/gcc/ada/system-linux-x86.ads, name it system.ads and place it into rts/boards/i386/ we need to edit this a bit. |
Copy a system.ads from GCC that matches the target you are working with, in our case this is gcc-<version>/gcc/ada/system-linux-x86.ads, name it system.ads and place it into rts/boards/i386/adainclude/ we need to edit this a bit. |
||
We don't need to change anything from the top as all the integer sizes should be correct. Go to the private part of the spec and change the following values: |
We don't need to change anything from the top as all the integer sizes should be correct. Go to the private part of the spec and change the following values: |