Mail Archives: djgpp/1993/07/30/09:59:57
> Does anyone know of a GCC port to OS/2? Or better yet, has anyone got a
> cross-compiler setup to target OS/2 from UNIX? If I can target OS/2, then
> I can use GCC on all my platforms and have one less portability concern to
> worry about!
There are at least 3 ways to use GCC with OS/2 (which I have done all of...)
1) Use DJGPP in a DOS box with the DPMI support. Believe it or not, for
character cell applications this is FASTER than native OS/2 code, since
you don't have to thunk to the 16 bit OS/2 stuff each time you want to
write a string. I write "directly to the screen" and the speed is
amazing. Enhanced support with graphics and just about anything else
the VCPI version has is coming sometime to an FTP site near you...
This way a single EXE version will run DOS, WINDOWS and OS/2 (and maybe
NT if I ever get around to fixing it...)
2) Get a copy of EMX (hobbes.unm.edu (or somesuch)) is a great place to get
lots of OS/2 software, including ports with GCC. EMX also will run under
DOS, and has many nice features. It does not include all source, however,
which makes it unsupportable long term in a commercial environment. If
worse comes to worse with DJGPP, you have to have an internal expert to
fix/enhance the DJGPP code, which you get *ALL* of!
3) There is a GCC port on charon.mit.edu (official I think?) which has some
problems but carries much less baggage than the EMX version. It is
much easier to make standalone images for distribution with this compiler.
- Raw text -