Ada Bare Bones: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Line 86:
 
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.
 
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:
 
# No_Enumeration_Maps => False
# Configurable_Run_Time => True
# Exit_Status_Supported => False
# Stack_Check_Probes => False
# ZCX_By_Default => False
# GCC_ZCX_Support => False
 
For more information on these options, see gcc-<version>/gcc/ada/targparm.ads.
 
===makefile===