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 01:00:04 PST Path: supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!sunqbc.risq.qc.ca!news.maxwell.syr.edu!newsfeed.icl.net!news.algonet.se!algonet!pepsi.tninet.se!not-for-mail From: Mats Karlssohn Newsgroups: comp.lang.ada Subject: Re: Compile time executed functions Date: Wed, 04 Apr 2001 09:52:18 +0200 Organization: MIDA Systemutveckling AB Message-ID: <3ACAD2B2.4252FD7B@mida.se> References: <3AC03CCE.70E3C2D5@mida.se> <3AC18DD1.EF25CE42@mida.se> <5mzw6.415$1H6.72722473@newssvr16.news.prodigy.com> <3AC2EB17.33AAEC0A@mida.se> NNTP-Posting-Host: sdu168-250.ppp.algonet.se Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: cubacola.tninet.se 986370739 11734 195.163.250.168 (4 Apr 2001 07:52:19 GMT) X-Complaints-To: abuse@algo.net NNTP-Posting-Date: 4 Apr 2001 07:52:19 GMT X-Mailer: Mozilla 4.6 [en] (WinNT; I) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:6437 Date: 2001-04-04T07:52:19+00:00 List-Id: 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 > embedded system you could also just write the data out into a binary file, have > it burned into a set place in ROM, and use "for use at" to map an Ada structure > there. 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 for more platforms arise. -- 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