Go to the first, previous, next, last section, table of contents.

MS-DOS or OS/2 with EMX

EMX is a FreeWare 32-bit DOS extender which adds some properties of UNIX to the DOS and OS/2 operating systems written by Eberhard Mattes. You can find it, for example, via anonymous `ftp' on the server `ftp.uni-stuttgart.de' in the directory `pub/systems/os2/emx*'.

The EMX extender for DOS and OS/2 makes it relatively easy to port GNU tools--such as the GNU Pascal Compiler--to these platforms. However, it is not straightforward to compile it.

  1. I assume you have the EMX package installed with GNU development tools and the dmake make utility. You have compiled GNU C such that the object files are still in place. It is important that GNU C is the version matching ot GNU Pascal which is currently 2.7.2.1. If you have problems compiling GNU C: The directory `config/emx' contains drive-independent versions of `dostage1.cmd' and `makeexe.cmd'. If you are running DOS, you are in trouble now because the DOS command line is limited to 128 characters. If you succeed to compile GPC for EMX on a DOS system, please let us know. (However you can compile GPC for DJGPP on a DOS system.)
  2. Unzip the source for GPC from the emx directory, so it will go into the gnu subdirectory. Unlike other EMX sources, the GPC source must *not* be extracted from the root directory.
      cd \emx
      pkunzip -d c:\gpc-2721
    
  3. Configure and make your GNU Pascal compiler and runtime system. You need not call `dmake' directly; call `make.cmd', instead.
      configur
      make
    
  4. To install, type
      make install
    

Go to the first, previous, next, last section, table of contents.