Thread View: gnu.g++.help
2 messages
2 total messages
Started by Jan Kampherbeek
Fri, 10 Nov 1995 22:22
Re: Cross compiling on Unix -> OS/2
Author: Jan Kampherbeek
Date: Fri, 10 Nov 1995 22:22
Date: Fri, 10 Nov 1995 22:22
35 lines
1592 bytes
1592 bytes
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. > >Thanks in advance. > >-- >Arnel Lim Email: arnel@ictv.com >Software Engineer Phone: (408) 364-9259 >ICTV, Inc. FAX: (408) 364-9300 >14600 Winchester Blvd. WWW: <http://www.ictv.com> >Los Gatos, CA 95030 > 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. For OS/2 I used the GCC-compiler that has been ported from Unix to OS/2 by Eberhard Mattes (the EMX-package). And for Unix (Linux in this case) I used the GCC compiler that came with my Slackware distribution. I suppose that using GCC-compilers on both platforms makes porting much easier. Hope this helps, Jan Kampherbeek, Enschede, The Netherlands
Re: Cross compiling on Unix -> OS/2
Author: Volker A. Brandt
Date: Mon, 13 Nov 1995 11:01
Date: Mon, 13 Nov 1995 11:01
33 lines
1892 bytes
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)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads