Building GNAT (Ada) 4.2.2 for bare hardware

Joel Sherrill
Tue Jan 15 20:39:00 GMT 2008

Luke A. Guest wrote:
> Hi,
> I'm looking to build a version of gnat (Ada) for bare hardware but it
> requires dirent.h which isn't supported by newlib.
> My targets are i386-elf, x86_64-elf, mips-elf and mipsel-elf. I'm
> attempting to write an OS  from scratch using Ada and don't require much
> of the runtime like tasking, exceptions, file IO, etc.
> For more of idea of what I'm planning, go to and
> look for the TAMP entry.
> Can somebody point me in the right direction?
How bare do you want the hardware?  GNAT+RTEMS works
well for 4.2.2.  It includes full tasking, Ada interrupt tasks,
stack checking, GNAT Sockets support, etc.  When I ran
ACATS on the PowerPC and SPARC, it was within a few
tests of 100%.  I spot checked the MIPS and x86.

> Thanks,
> Luke A. Guest.

More information about the Newlib mailing list