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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a3e487894bcfd825 X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: Pragma and Object Files Date: 1998/04/16 Message-ID: <35361C04.2BC8@gsfc.nasa.gov>#1/1 X-Deja-AN: 344687644 Content-Transfer-Encoding: 7bit References: <3532632F.7424B473@vci.net> <6gu86j$f8p$1@gonzo.sun3.iaf.nl> <3533A6B4.A5672659@vci.net> Content-Type: text/plain; charset=us-ascii Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Mime-Version: 1.0 Reply-To: Stephen.Leake@gsfc.nasa.gov Newsgroups: comp.lang.ada Date: 1998-04-16T00:00:00+00:00 List-Id: Albert K. Lee wrote: > > On Tue, 14 Apr 1998 13:11:00 -0500, Andy Perkins wrote: > >Geert Bosch wrote: > > > >> Two ways: > >> 1. Pass the name of the object as linker argument to the gnatmake program. > >> See the GNAT User's Manual for more details. > >> > >> 2. Use the pragma Linker_Options ("yourobject.o") to link in your > >> object file. See Ada Reference manual. > > > > The problem is that I don't have a .o file. Mine is an obj file from > > Borland Turbo Assembler. I can, of couse, tell there is a difference, > > but is there a way to convert an obj file to an o file? > > An .obj file is an .o file, there is no difference ... DOS uses an > .obj file extension while many other OS's use .o instead. Sorry, but no. There are many different object file formats. Borland, Microsoft, and GNAT are all different from each other. I don't know of any way to directly convert one format to another, but there may be something like that in the gnu bintools (but gnu bintools probably don't know about Borland object format!). You'll have to compile the assembler code with the gnu assembler. I don't know if the assembler syntax is the same; the opcode mnemonics probably are, but the macro language is probably different. Good Luck! -- - Stephe