🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #820

Re: Cross compiling on Unix -> OS/2

#820
From: Volker A. Brandt
Date: Mon, 13 Nov 1995 11:01
33 lines
1892 bytes
In article <9511102315.AA23354@a3> j.kampherbeek@a1.NL (Jan Kampherbeek) writes:
>At 07:22 PM 11/9/95 -0800, Arnel Lim wrote:
>>I need to port some code to OS/2 from Unix.  Does the GNU tools
>>support a cross-compiler?  I want to stay within my local
>>Unix (SunOS) environment when doing the porting.  Has any had
>>any success/experience with this?  Any help would be appreciated.
>
>I've ported a small program from OS/2 to Unix. It included simple
>file-handling, a (pseudo) random-generator and string-manipulation. But it
>did not include Presentation Manager. The job was done after applying just
>two or three minor adjustments.

No, Jan!  Arnel wanted to *cross-compile*, not *port*!!

Here's what I'd do:

  o	get the OS/2 patches for gcc by Eberhard Mattes
  o     apply them to the gcc sources
  o	build a cross compiler as explained in the INSTALL docs
  o	build an OS/2 ld from the Mattes sources
  o	copy the OS/2 emx library stubs to your Unix system

You're set!  In addition, since emx uses the bsd a.out object file
format [correct me if I'm wrong] you could also use a "regular" Intel
cross compiler if you configure it for a.out.


Hope this helps -- Volker
-- 
----------------------------------------------------------------------------
Chirac -- Le fossoyeur de la Grande Nation 		Volker A. Brandt
Internet: volker@iam.uni-bonn.de			Angewandte Mathematik
Phone/FAX number available upon request			(Bonn, Germany)
Technical Details
Message-ID: <4878hl$q6i@news.rhrz.uni-bonn.de>
Path: arc1-ca.pugleaf.net!carlotta.iam.uni-bonn.de!volker
References: <9511102315.AA23354@a3>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!carlotta.iam.uni-bonn.de!volker
From: volker@carlotta.iam.uni-bonn.de (Volker A. Brandt)
Newsgroups: gnu.g++.help,comp.lang.c++
Subject: Re: Cross compiling on Unix -> OS/2
Date: 13 Nov 1995 11:01:09 GMT
Organization: Inst.f.Appl.Math., University of Bonn
Distribution: world
Message-ID: <4878hl$q6i@news.rhrz.uni-bonn.de>
References: <9511102315.AA23354@a3>
NNTP-Posting-Host: carlotta.iam.uni-bonn.de