Metropoli BBS
VIEWER: hc386.dos MODE: TEXT (ASCII)
!
! 386|LINK command file to link a MetaWare High C/C++ program to run
! under Phar Lap's 386|DOS-Extender
!
-exeformat pe			! create a PE output file
-markphar 			!   with a PL signature
-subsystem dosstyle		!   and do it DosStyle
-defstubname gotnt		! bind GOTNT stub loader on the output file
-stack 8000h			! give program a 32K stack
-maxdata 200000h		! set to minimum req'd heap memory needed, for
				! Windows 3.0 bug workaround (see section
				! 9.3 of 386|DOS-Extender Reference Manual)
-twocase			! case-sensitive link
-lib hc386			! C library
-lib hcna
-lib hcsoft			! C floating point emulation
-lib dosx32.lib			! _dx_ functions for Phar Lap system calls
-386				! 386 (or later) processor target
-pebias 5000h			! leave room to load stub ldr and PE header

! Give code the "er" (execute/read) and data the "rw" (read/write)
! attributes, so a debugger (such as 386|SRCBug) will be able to
! distinguish between code and data symbols

-attributes class CODE er
-attributes group CGROUP er
-attributes class DATA rw
-attributes class CONST rw
-attributes class BSS rw
-attributes class STACK rw
-attributes group DGROUP rw
[ RETURN TO DIRECTORY ]