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: 103376,770531b96951ef54,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!a75g2000cwd.googlegroups.com!not-for-mail From: "freejack" Newsgroups: comp.lang.ada Subject: Linking Ada with large Assembler libs? Date: 21 Feb 2007 13:29:56 -0800 Organization: http://groups.google.com Message-ID: <1172093396.490201.203630@a75g2000cwd.googlegroups.com> NNTP-Posting-Host: 64.50.250.237 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1172093414 25496 127.0.0.1 (21 Feb 2007 21:30:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 21 Feb 2007 21:30:14 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.12) Gecko/20060302 Firefox/1.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: a75g2000cwd.googlegroups.com; posting-host=64.50.250.237; posting-account=O-jTvQ0AAAD-FI72QYlC0mvv4sicfAMF Xref: g2news2.google.com comp.lang.ada:9386 Date: 2007-02-21T13:29:56-08:00 List-Id: The Machine Code Insertions sections of the relevant reference manuals have been informative. However, I'm linking my Ada code with pre-existing libs written in Assembler. The GNAT manuals are a little sketchy on how to do this properly. I'm using NASM and FASM Assembler code. Most of the Assembler code deals primarily with I/O. I'm using Pragma No_Run_Time and writing my own Binder files, with a good bit of success. It's not such a big problem, as I can do it by fiddling with the linker and manipulating the object code. But the result is messy and error prone. What are the best methods you guys have come up with for doing this sort of manipulation? freejack Chris