Thread View: comp.os.os2.programmer.misc
3 messages
3 total messages
Started by Fenris Wolf
Fri, 26 Jan 1996 00:00
GCC in OS/2 and DOS...
Author: Fenris Wolf
Date: Fri, 26 Jan 1996 00:00
Date: Fri, 26 Jan 1996 00:00
23 lines
1834 bytes
1834 bytes
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? (If you could email me any responses, I'd appreciate it, I'm not always capable of keeping up with newsgroups.) Thanks in advance, -- Fenris Wolf http://www.ionline.net/~cory/index.html aka Fenris/Bytor on IRC (The Undernet, #canada)
Re: GCC in OS/2 and DOS...
Author: 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)
Re: GCC in OS/2 and DOS...
Author: Wonkoo Kim
Date: Sun, 28 Jan 1996 00:00
Date: Sun, 28 Jan 1996 00:00
12 lines
1351 bytes
1351 bytes
In <4eamo6$o6n@omega.gmd.de>, veit@mururoa.gmd.de (Holger Veit) writes: >... > THere is almost nothing you can do with djgpp which >has no counterpart in EMX (the converse is not true). >... Except graphics stuff. (emx/gcc and djgpp are much different here.) //-------------------------------------------------------------------- // Wonkoo Kim (wkim+@pitt.edu)
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