comp.lang.ada
 help / color / mirror / Atom feed
* What are the limitations imposed by GNAT without runtime?
@ 2007-10-09 16:28 Lucretia
  2007-10-09 20:10 ` anon
  0 siblings, 1 reply; 9+ messages in thread
From: Lucretia @ 2007-10-09 16:28 UTC (permalink / raw)


Hi,

I have just tested this again and it seems to work. Basically,
configure gnat with --target=i386-elf, build, it stops failing cos
there is no runtime. You can install and it gives you a gnat1 compiler
in  libexec/gcc/i386-elf/4.2.2/ and gnatbind in bin/.

You have to copy the basic system.ads file from the source archive to
lib/gcc/i386-elf/4.2.2/adainclude/.

This then allows you can use i386-elf-gcc -c to compile source files.
You can also use i386-elf-ld to link provided you supply a linker
script and you'll also need some startup code.

So, as a test I put the following code through the compiler just to
see if it compiled:

pragma No_Run_Time; -- This isn't in the manual, and I vaguely
remember something about it being removed, no errors/warnings though.

procedure Kernel is

  type Wah is (One, Two);

  S : String := Wah'Image(Wah'First);

begin
   null;
end Kernel;

gives the following error:

kernel.adb:7:20: construct not allowed in configurable run-time mode

What does this mean?

So, apart from tasking and exceptions, what other language constructs
cannot be used in this mode?

Thanks,
Luke.

P.S: I'll try not to be sarcastic ;D




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-10-11  3:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-09 16:28 What are the limitations imposed by GNAT without runtime? Lucretia
2007-10-09 20:10 ` anon
2007-10-10  4:39   ` Simon Wright
2007-10-10 10:07     ` Lucretia
2007-10-10 10:04   ` Lucretia
2007-10-10 17:51     ` anon
2007-10-10 19:00       ` Lucretia
2007-10-10 19:24         ` Lucretia
2007-10-11  3:05         ` anon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox