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=2.2 required=5.0 tests=BAYES_00,FROM_WORDY, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8435c6357dfc5329 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-17 22:58:52 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!dispose.news.demon.net!demon!sn-uk-post-01!supernews.com!xo.supernews.co.uk!not-for-mail From: "Dave Adlam" Newsgroups: comp.lang.ada Subject: Re: User-defined access dereference Date: Sat, 18 Aug 2001 06:48:35 +0100 Organization: Posted via Supernews, http://www.supernews.com Message-ID: Reply-To: "Dave Adlam" References: <3B7DAEA0.60043A96@gsde.hou.us.ray.com> X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@xo.supernews.co.uk Xref: archiver1.google.com comp.lang.ada:12090 Date: 2001-08-18T06:48:35+01:00 List-Id: Stanley R. Allen wrote in message <3B7DAEA0.60043A96@gsde.hou.us.ray.com>... > >Language design. > > >Now we are faced with another situation in which it would be nice to replace >".all". This time, there are over 10,000 dereferences in over a million lines >of code, so it's out of the question to do to this code what was done to the >other code before. (The latest issue is the need to error-check each reference >because it's possible for 'remote' references to have recoverable point failures >in a what is essentially 'reflected memory' for a Linux cluster.) > > >Any thoughts? > >-- >Stanley Allen >mailto:Stanley_R_Allen-NR@Raytheon.com I once had to integrate actual flight software for the Cluster spacecraft into the simulator for those spacecraft. As there were four spacecraft in the simulator, all references to package level declarations in the flight software had to be modified. Most of the variables and constants were package level! The approach that I used (and might be useful for you) was to write a processor that parsed the Source code and converted it into what I needed. The parser was not a full blown language parser, just enough to let me recognise what I needed to find and modify. The rest of the code was output verbatim. I only had to work on correctly compiled code, so there was no error handling or recovery required in the parser. If you have a million lines of code, then a similar approach might work. And you now have the advantages of tools like the GNAT parser and ASIS, which should make it easier. I would suggest that you at least look at some form of tool to automate the conversion. Dave Adlam