Ada Bare Bones: Difference between revisions

[unchecked revision][unchecked revision]
No edit summary
Line 16:
Therefore these users don't understand what it takes to get the compiler into a useable state.
 
As you may have seen from other bare bones tutorials on this site, they state that you must have a compiler built which can handle [[ELF]] files, the usual way is by building GCC which targets i386-elf or some other similar architecture. The problem here is that GNAT will not build for these targets out of the box without messing with it's makefile. You have to do this as the makefile builds the RTS and then the gnat tools (gnatmake, gnatbind, et al) which must all be built to have a working compiler - even though we will be replacing the RTS with our own cut down version.
 
So, forFor this tutorial, we will use the system GNAT compiler to build for a PC i386. andGNAT is part of GCC. laterLater I will show how to build an arm-elf compiler and tools. IMy amOS onis Debian testing 64-bit with GNAT 4.6.
 
==GNAT and the Ada runtime system (RTS)==
Anonymous user