From: Lucretia <lucretia9@lycos.co.uk>
Subject: What are the limitations imposed by GNAT without runtime?
Date: Tue, 09 Oct 2007 16:28:36 -0000
Date: 2007-10-09T16:28:36+00:00 [thread overview]
Message-ID: <1191947316.791605.8420@50g2000hsm.googlegroups.com> (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
next reply other threads:[~2007-10-09 16:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-09 16:28 Lucretia [this message]
2007-10-09 20:10 ` What are the limitations imposed by GNAT without runtime? 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox