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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,ed872c72866dab2b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: expression function bug or think? Date: Fri, 17 Jun 2011 14:09:22 +0300 Organization: Tidorum Ltd Message-ID: <960qv2Fmi8U1@mid.individual.net> References: <678085105329914667.504682rmhost.bauhaus-maps.arcor.de@news.arcor.de> <87wrglwmao.fsf@mid.deneb.enyo.de> <81880ff3-0c1a-4414-aeab-6a5406d71628@d14g2000yqb.googlegroups.com> <26c8352c-3f50-4209-a8f2-5ebec7bb2344@n10g2000vby.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net PIggKi2WGZOcXRn63YIjpQfiikOO2OBnAl/TTriYVvTtIdAz5r Cancel-Lock: sha1:lyOcq1xNGwhgLHphlHNnIh3ZtyE= User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100328) In-Reply-To: <26c8352c-3f50-4209-a8f2-5ebec7bb2344@n10g2000vby.googlegroups.com> Xref: g2news1.google.com comp.lang.ada:19918 Date: 2011-06-17T14:09:22+03:00 List-Id: Martin wrote: > On Jun 17, 11:33 am, Simon Wright wrote: >> Martin writes: >>> On Jun 16, 9:41 pm, Simon Wright wrote: >>> [snip] >>>> package functions is >>>> function functions__fib (n : natural) return natural; >>> Thanks for this - this confirms something I'd been told wasn't the >>> case - when compiling GNAT, non-standard identifiers _are_ created and >>> allowed (in this case a name with a double underscore)! >> I think this only happens when GNAT recreates the processed source to >> show you what it did. > > Ahhh! Thanks...wonder what the internal reference looks like...or is > there one at all and it just creates these names when this option is > selected? If I had a 28 hour day, I might find out! I'm not sure what your question really is, but if it is about the way GNAT generates link names for Ada entities, this is explained in the GNAT User's Guide. Quote (from the version for GCC 4.3.0): "25.2 The External Symbol Naming Scheme of GNAT In order to interpret the output from GNAT, when using tools that are originally intended for use with other languages, it is useful to understand the conventions used to generate link names from the Ada entity names. All link names are in all lowercase letters. With the exception of library procedure names, the mechanism used is simply to use the full expanded Ada name with dots replaced by double underscores. For example, suppose we have the following package spec: package QRS is MN : Integer; end QRS; The variable MN has a full expanded Ada name of QRS.MN, so the corresponding link name is qrs__mn." The name "functions__fib" in the recreated source, above, follows this rule. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .