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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,571930b4ff0bc1ee X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-04 23:32:05 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!skynet.be!news.algonet.se!algonet!pepsi.tninet.se!not-for-mail From: Mats Karlssohn Newsgroups: comp.lang.ada Subject: Re: Compile time executed functions Date: Thu, 05 Apr 2001 08:30:13 +0200 Organization: MIDA Systemutveckling AB Message-ID: <3ACC10F5.8B1D021E@mida.se> References: <3AC03CCE.70E3C2D5@mida.se> <3AC18DD1.EF25CE42@mida.se> <5mzw6.415$1H6.72722473@newssvr16.news.prodigy.com> <3AC2EB17.33AAEC0A@mida.se> <3ACAD2B2.4252FD7B@mida.se> NNTP-Posting-Host: du166-155.ppp.algonet.se Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: zingo.tninet.se 986452229 1451 195.100.155.166 (5 Apr 2001 06:30:29 GMT) X-Complaints-To: abuse@algo.net NNTP-Posting-Date: 5 Apr 2001 06:30:29 GMT X-Mailer: Mozilla 4.6 [en] (WinNT; I) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:6496 Date: 2001-04-05T06:30:29+00:00 List-Id: Ted Dennison wrote: > > In article <3ACAD2B2.4252FD7B@mida.se>, Mats Karlssohn says... > > > >Ted Dennison wrote: > >%< > >> For that matter, with a little investigation into your platform's object file > >> formats, you could just have your program directly create an object file with > >> the data in it, and "pragma Import" it and link it with your Ada code. On an > >Well actually this is what I decided to do during the weekend. > >Since i have GNU libbfd.so creating an object file should be > >pretty easy and GNU objcopy can be a friend when the need to > > :-) > > It always warms my heart to see someone writing a compiler in Ada (even if they > don't always realize that's what they are doing). well I've been down that road a few times, one of the more entertaining ones were the compiler that translated a map database in som ugly textformat into Megatek displaylists, binary files that were later loaded onto the graphics hardware. It was entertaining since debugging was just about impossible, since most of the time the graphics system (a Sigma 70) would just hang when you fed it incorrect data, forcing a partitial (or sometimes a full) reset/reboot of the system (Sun 4/300). -- Mats Karlssohn, developer mailto:mats@mida.se Mida Systemutveckling AB http://www.mida.se Box 64, S-732 22 ARBOGA, SWEDEN Phone: +46-(0)589-89808 Fax: +46-(0)589-89809