comp.lang.ada
 help / color / mirror / Atom feed
From: anon@anon.org (anon)
Subject: Re: What are the limitations imposed by GNAT without runtime?
Date: Thu, 11 Oct 2007 03:05:54 GMT
Date: 2007-10-11T03:05:54+00:00	[thread overview]
Message-ID: <mqgPi.663011$p47.360563@bgtnsc04-news.ops.worldnet.att.net> (raw)
In-Reply-To: 1192042858.495410.139280@d55g2000hsg.googlegroups.com

You create a corrupt build.

First, delete *.o *.ali

Second, you use "gnat compile kernel.adb -S" this feature does 
not build the object file kernal.o

To build the object file must use either => "gnat compile kernel.adb -S"
                                            "gcc -c kernel.s" 

or go back and use                       => "gnat compile kernel.adb"

Then        => "gnat bind kernel.ali" or "gnatbind kernel.ali" 
followed by => "gnat link kernel.ali" or "gnatlink kernel.ali"

Then try objdump. You will not find "ONETWO" in the version that 
has "pragma NO_RUN_TIME ;"

As for then "Zero Foot Print" documentation, well in GNAT that seams 
to be based in the PRO version. The default for the compiler is in 
Targparm package, but can be altered by editing the System package. 


In <1192042858.495410.139280@d55g2000hsg.googlegroups.com>,  Lucretia <lucretia9@lycos.co.uk> writes:
>On Oct 10, 6:51 pm, a...@anon.org (anon) wrote:
>>   To test this type:   "gnat compile kernel.adb -S"
>>   Then check the file: "kernel.s"
>>
>>     You will see that without the "pragma NO_RUN_TIME" statement
>>     there is a data string of "ONETWO" which can be use by IMAGE
>>     attribute.  But with the pragma the string "ONETWO" is
>>     removed as well as the code that uses the data string, so
>>     you have to build your own version.
>
>Well, the assembly doesn't give any ASCII representation, but doing an
>objdump on the file does.
>
>Basically, the pragma No_Run_Time definitely has no effect on gnat
>4.2.2, the string is there with or without the pragma.
>
>> Now in my answer I provide an example function based on your type with
>> two objects. If you had a type with more than a couple of objects, then
>> you might want to use an array with the type value as part of the index
>> algorithm to that array.
>>
>> This is one of the problems using the "pragma NO_RUN_TIME ;"
>> statement! Which became obsolescent after GNAT 3.15P .
>>
>> From the GNAT_RM 3.15P :
>
>I really don't fancy trying to build an older gnat, especially on a 64
>bit OS.
>
>> Now, from the GCC 4.3 => GNAT_RM :
>>
>> Chapter 14: Obsolescent Features                                    211
>>
>[snip]
>>  14.1 pragma No Run Time
>>
>>  The pragma No_Run_Time is used to achieve an affect similar to the
>>  use of the "Zero Foot Print" configurable run time, but without
>
>And this ZFP profile doesn't exist in the gcc-4.2.2 docs, it's
>mentioned in 14.1, but that's all.
>
>Luke.
>




      parent reply	other threads:[~2007-10-11  3:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
replies disabled

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