🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #184

Re: emx/g++ available (and others)

#184
From: T.Lampre
Date: Thu, 30 Jul 1992 00:25
68 lines
3337 bytes
In article <712350535.F00004@fast.fido.de> Oliver.Otto@f2006.n241.z2.fidonet.org (Oliver Otto) writes:
>Hello all!
>
> > emxgpp.zip   the emx/g++ executables/headers/libraries
> > emxgdb.zip   the updated emx/gcc gdb.exe (just bug fixes)
> > emxlibpp.zip  the emxg/g++ library sources (modified GNU libg++ 2.2
> >       and BSD curses)
>
>May someone post a message to me what is the difference between EMX and G++
>- is EMX a normal C compiler or is it a ++ compiler???
>
>Oliver

A fairly long reply follows:

EMX is set of development tools for OS/2 2.0 and DOS. It includes
utiltities to manage programs created using the EMX port of GNU C/C++.

There are, therefore, two parts to the EMX GCC package. The EMX part
is copyrighted to Eberhard Mattes and the GCC part is copyrighted to
the Free Software Foundation. The source code to GCC is freely
available from many sources. I don't think the sources to EMX have
been released.

So, EMX isn't a compiler in itself. GCC will compile both C and C++.
It also has support for Objective C syntax but no runtime support.
(See Object Orientd Software: An Evolutionary Approach by Brad Cox for
more info on this variant of C).

To complicate things further, there is also a 'native' port of GCC for
OS/2 as well. I say 'native' because it compiles to OS/2 object code
and you need link386 (bundled with OS/2) to create EXE's. EMX produces
standard Unixe style object code and puts a wrapper round it to make
an EXE file. A brief comparison follows:


			EMX		Native
		   -------------    ----------------		
Both C and C++  	Yes		Yes
Debugger (GDB)		Yes 		No
Create DLL's		No		Yes
Current Version		2.2.2 (beta)	2.1
OS/2 API support	Some		Most (All if you have the toolkit)
Unixisms support	Good		Patchy
Complete C Library	I think so	Not so good

In a nutshell, use EMX if you want to port Unix programs. The OS/2 API
calls are being added to the EMX libraries so it will be good for
doing PM apps soon as well. Work on EMX is very active and has
proceeded a quite a long way. I should add that the only version
available for ftp is at 2.1, patches do exist to bring it up to 2.2.2.
All should be bundled into one package on the next release, 0.8e.

If you need to create DLL's or link to other peoples .OBJ files then
the native version is needed. The mailing list for this port is *very*
quiet. I have not been able to get any info on what is happening to
it. Work is being done by me to bring it up to 2.2.2. I have managed
to get it to self compile at 2.1 but there are major differences to
2.2.2 so it will take a while. There is also the question of a
debugger and to give it a name (I'm sick of calling it the 'native' or
'other' port, suggestions anyone?).

Hope this answers most questions.


Trevor Lampre
MIS Unit
Flinders University of South Australia
Technical Details
Message-ID: <1992Jul30.002503.42783@frodo.cc.flinders.edu.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!frodo.cc.flinders.edu.au!hobson.cc.flinders.edu.au!mmtl
References: <712350535.F00004@fast.fido.de>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!frodo.cc.flinders.edu.au!hobson.cc.flinders.edu.au!mmtl
From: mmtl@hobson.cc.flinders.edu.au (T.Lampre)
Newsgroups: comp.os.os2.programmer
Subject: Re: emx/g++ available (and others)
Message-ID: <1992Jul30.002503.42783@frodo.cc.flinders.edu.au>
Date: 30 Jul 92 00:25:03 GMT
References: <712350535.F00004@fast.fido.de>
Sender: @frodo.cc.flinders.edu.au
Organization: Flinders University
Lines: 68