Porting to OS/2: Choose a compiler to use



OS/2 has compilers and interpreters for many languages. But most projects maintain by C/C++. So these articles would concentrates to C/C++ only. In fact, my experiences are also limited to these languages. ^^

First, let's find out C/C++ compilers for OS/2.

1. VisualAge C/C++


OS/2 was developed by IBM. So IBM provided C/C++ compilers for OS/2. It is 'VisualAge C/C++'. Its latest version is 4.0. Unfortunately, however, it is not developed any more.

2. Borland C/C++


At some times, Borland was a very popular corporation in compiler world. It also provided their C/C++ compiler for OS/2. Its latest version is 2.0. Likewise, however, it is not developed any more.

3. Open Watcom C/C++


Watcom is an excellent developer of C/C++. And it also provided their superior compilers for OS/2. Its latest version is 11.0. Although its development was stopped before, Sybase, which developed Watcom, open-sourced their compilers. Now it is called 'Open Watcom'. This 'Open Watcom' is maintained well. And its support for OS/2 is excellent. Current version is 1.9.

4. GCC


As you know, GCC is a open source compiler collection. And like other platforms, this famous compiler is available for OS/2. At first, GCC has two forks on OS/2. One is gcc/2 and the other is gcc-emx. Later, gcc-emx only have survived. The latest version of gcc for emx is 3.2.1 and emx is 0.9d fix 4. Many unix projects can be compiled by gcc-emx. But this pair is not developed any more.

Nevertheless, the fortunate is that its successor exists. It is gcc-klibc. gcc for klibc is maintaing actively by Paul Smedley, and klibc is also maintaining by Knut St. Osmundsen.

So if we choose a compiler, it should be one of Open Watcom and GCC because they are currently maintaining. If our goal is to develop OS/2 native program, it is no matter what we choose. However, our goal is to port open source projects to OS/2. In addition, those projects are developed with gcc. So it's better to use gcc than Open Watcom. These articles will be written with gcc.


Next time, let's find out how to install gcc.

댓글

이 블로그의 인기 게시물

토렌트: < 왕좌의 게임 > 시즌 1 ~ 시즌 8 완결편 마그넷

토렌트: NGC < 코스모스 > 우리말 더빙 전편(1편~13편) 마그넷

토렌트: < 스타워즈 > Ep.1 ~ Ep.6 마그넷