From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5ca3d5098e21bb51 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!d55g2000hsg.googlegroups.com!not-for-mail From: Lucretia Newsgroups: comp.lang.ada Subject: Re: What are the limitations imposed by GNAT without runtime? Date: Wed, 10 Oct 2007 12:00:58 -0700 Organization: http://groups.google.com Message-ID: <1192042858.495410.139280@d55g2000hsg.googlegroups.com> References: <1191947316.791605.8420@50g2000hsm.googlegroups.com> <1192010655.057857.9760@k79g2000hse.googlegroups.com> NNTP-Posting-Host: 90.194.162.195 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1192042858 5399 127.0.0.1 (10 Oct 2007 19:00:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 10 Oct 2007 19:00:58 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: d55g2000hsg.googlegroups.com; posting-host=90.194.162.195; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2417 Date: 2007-10-10T12:00:58-07:00 List-Id: 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.