delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/16/03:11:53

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Object files
Date: Wed, 15 Apr 1998 19:10:49 -0400
Organization: Two pounds of chaos and a pinch of salt.
Lines: 34
Message-ID: <35353E79.D72@cs.com>
References: <35350052 DOT 5CCF9A2A AT vci DOT net>
NNTP-Posting-Host: ppp228.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Andy Perkins wrote:
> 
> I am looking for some type of utility to
> convert OBJ files to O files that can be
> used with GNAT Ada 3.10p, which uses
> gpp.  Some people in comp.lang.ada said
> I should try asking here...
> 
> Does anyone know where I could find
> such a program?

It is 95% certain that your task is impossible, because the majority of
OBJ modules don't just use a different format (which can theoretically
be converted), but also use 16-bit segmented code, which simply won't
work alongside 32-bit protected mode code.  See chapter 17 of the DJGPP
Frequently Asked Questions list (v2/faq210b.zip on SimTel mirrors or
online at http://www.delorie.com/djgpp/v2faq/) for more information.

You don't say specifically that you're using DJGPP for DOS here.  If you
are trying to use these OBJ files on a different CPU/operating system,
then your chances change from extremely unlikely to completely
impossible.

Unless you are very lucky, your only choices are to obtain the source
code, port it, and recompile it, or to duplicate the module's
functionality with some other code.

-- 
---------------------------------------------------------------------
|      John M. Aldrich       |"Men rarely (if ever) manage to dream |
|       aka Fighteer I       |up a god superior to themselves. Most |
|   mailto:fighteer AT cs DOT com   |gods have the manners and morals of a |
| http://www.cs.com/fighteer |spoiled child."    - Lazarus Long     |
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019