comp.lang.ada
 help / color / mirror / Atom feed
From: banner@cs.nyu.edu (Bernard Banner)
Subject: Re: Question: Gnat + EMX
Date: 26 Mar 1995 13:47:17 -0500
Date: 1995-03-26T13:47:17-05:00	[thread overview]
Message-ID: <3l4crl$82p@gnat.cs.nyu.edu> (raw)
In-Reply-To: 3kmbdd$8j4@cc.joensuu.fi

dahlman@cc.joensuu.fi (Eric Dahlman) writes:
: I was looking at teh readme's for Gnat for EMX and I was wondering if 
: someone could clear up a question for me?  I can clarify this if 
: necessary but I figure if you know the answer you will probably 
: understand the question.  Is it possible to generate .obj (OMF) files and 
: link them with link386 using gnat or am I tied to the .o format?  This is 
: possible in the the other languages but I am not sure if Gnat can do it 
: and I don't have the time to play with it at the moment.
: 
: Thanks for any help,
: Eric

Currently GNAT is set up to deal with .o format. The EMX system provides
utilites to convert from .o format to .obj format. So if you wanted to attempt
to use .obj format you probably have two alternatives. 

Option 1. a. Recompile all your programs and the GNAT Run-Time library files
             with the -Zomf option which should generate .obj format.
          b. Reconstruct the gcc.a and gnat.a files into .lib files using
             the OS/2 lib utility.
          c. Use the output of gnatbl as a guide in what files need to be
             linked together using link386.
Option 2.
          a. Use the relevant EMX utilies (see the files in emx\doc for
             instructions) to convert the relevant .o to .obj files.
          Then proceed with b and c as noted in Option 1.

I have no idea if any of this works since I have not tried it. Right now the
system is set up to use .o format since this seems to be the preferred and
most flexible format under EMX and allows the GDB debugger to be used. So as
you noted in your posted message, if you don't have the time to play with it,
consider the answer as NO.

Bernard Banner



      reply	other threads:[~1995-03-26 18:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-21 10:56 Question: Gnat + EMX Eric Dahlman
1995-03-26 18:47 ` Bernard Banner [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox