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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7a27b8f727dd1e47 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!feed.news.tiscali.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: GNAT and no runtime Date: Tue, 08 Jun 2004 07:43:04 +0200 Organization: AdaCL Message-ID: <14117933.bn39bjDOdp@linux1.krischik.com> References: <5ad0dd8a.0405260252.6523893f@posting.google.com> <3519454.Bj6hR9Rpgt@linux1.krischik.com> <5ad0dd8a.0405281242.535b9e7e@posting.google.com> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1086676217 05 2763 oGSWGS-O62BHb9d 040608 06:30:17 X-Complaints-To: usenet-abuse@t-online.de X-ID: GJIULuZZQeENSBZZj4xzo2W1LwLQLnS6eMlP3EQElQJagLy50cFp8+ User-Agent: KNode/0.7.7 Xref: g2news1.google.com comp.lang.ada:1228 Date: 2004-06-08T07:43:04+02:00 List-Id: Wojtek Narczynski wrote: > Hello, > >> No chance. Even gnat name or gnat chop won't expand them. > > It turns out that "gnatchop -gnatd4 " will expand > filenames, but the result seems to be useless for anything but > browsing. I get interesting errors(1) if I try to compile them. > Apparently GNAT uses source filename, not package name to tell, which > file is internal. > > (1)Like these: > unchecked_conversion.ads:20:10: incorrect context for "Intrinsic" > convention > interfaces-c_streams.ads:272:36: non-static constant in preelaborated > unit > >> The short names are hard coded into gnat. Any package from Ada.* >> Interface.* >> GNAT.* and System.* must use short name. > > If only there were some strings hardcoded! There is much more than > that. There seems to be some algorithm. I recently tried to build some extension to the Ada.* tree for Wide_Characters. GNAT was then telling me exactly which filename to use for what package. In the end the hole thing failed. After compiling everything OK, GNAT moaned about my packages not been part of the predefined Library. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com