Article View: comp.os.os2.programmer.misc
Article #290Re: GCC in OS/2 and DOS...
From: Holger Veit
Date: Fri, 26 Jan 1996 00:00
Date: Fri, 26 Jan 1996 00:00
33 lines
2883 bytes
2883 bytes
In article <4e9vcs$cpc_001@ppp36.ionline.net>, cory@ionline.net (Fenris Wolf) writes:
|> Hello,
|>
|> I recently got OS/2 Warp, so I went looking for a compiler and lo and
|> behold I found that there wasa gccc port for OS/2. Now, looking at the
|> EMX/GCC stuff, it appears that it compiles to .o, libs are .a, just like
|> in the DJGPP DOS version of gcc.
|>
|> Now, my question is this: Can I have OS/2 EMX/GCC stuff, and then just
|> add the DJGPP DOS ld (and perhaps a few of the libraries) to be able to
|> compile for DOS, rather than having two hole gcc's sitting on my hard
|> drive? And assuming that I don't use and operating system specific calls
|> in a .o file (or .a), can it be used by either the EMX gcc or the DJGPP
|> gcc? How interoperable/interchangeable are the two compilers?
You would rather throw away djgpp entirely, and get the DOS extender RSX
together with EMX. Provided you use only functions that are common to DOS
and OS/2 (read the EMX libref doc), EMX executables are interchangeable
between OS/2 and DOS. THere is almost nothing you can do with djgpp which
has no counterpart in EMX (the converse is not true).
From the a.out format, both should be at least similar (although a.out is not
a.out) but there may be subtle differences you won't encounter immediately,
but for linking you would at least need both sets of runtime and C libraries,
so you might end up with two compilers then.
--
Dr.-Ing. Holger Veit | INTERNET: Holger.Veit@gmd.de
| | / GMD - German National Research | Phone: (+49) 2241 14 2448
|__| / Center for Information Technology| Fax: (+49) 2241 14 2242
| | / Schloss Birlinghoven | "They're not sending back [Win95]
| |/ D-53754 Sankt Augustin, Germany | because it's not selling well; they
WWW: http://borneo.gmd.de/~veit/ | have overordered" (M$ spokesperson)
Technical Details
Message-ID:
<4eamo6$o6n@omega.gmd.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4e9vcs$cpc_001@ppp36.ionline.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,c95324b958286b1d X-Google-Attributes: gid11318c,public X-Google-Thread: 1049cc,c95324b958286b1d X-Google-Attributes: gid1049cc,public X-Google-Thread: 11307a,c95324b958286b1d X-Google-Attributes: gid11307a,public X-Google-Thread: 10ba33,c95324b958286b1d X-Google-Attributes: gid10ba33,public X-Google-Thread: f97d0,c95324b958286b1d X-Google-Attributes: gidf97d0,public X-Google-Thread: f65d0,c95324b958286b1d X-Google-Attributes: gidf65d0,public From: veit@mururoa.gmd.de (Holger Veit) Subject: Re: GCC in OS/2 and DOS... Date: 1996/01/26 Message-ID: <4eamo6$o6n@omega.gmd.de> X-Deja-AN: 136560408 sender: veit@mururoa (Holger Veit) references: <4e9vcs$cpc_001@ppp36.ionline.net> to: cory@ionline.net (Fenris Wolf) organization: GMD, Sankt Augustin, Germany newsgroups: comp.os.os2.programmer.misc,comp.os.os2.programmer.tools,gnu.gcc,gnu.gcc.help,gnu.g++,gnu.g++.help