home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l350 / 2.ddi / BIN / MSC386.LNK < prev    next >
Encoding:
Text File  |  1993-02-18  |  1.6 KB  |  53 lines

  1. !
  2. ! 386|LINK command file to link a Microsoft 32-bit C/C++ program to run
  3. ! under Phar Lap's 386|DOS-Extender
  4. !
  5. -start __p_start        ! program entry point
  6. -stack 4000h            ! give program a 16K stack
  7. -maxdata 0            ! no extra memory allocated at pgm load time
  8. -define __acrtused=0        ! symbol needed by libc
  9. -exeformat exp            ! create a .EXP output file
  10. -defstubname gorun386        ! bind GORUN386 stub loader on the output file
  11. -twocase            ! case-sensitive link
  12. -lib tnt.lib            ! Functions needed by libc.lib
  13. -lib dosx32.lib            ! _dx_ functions for Phar Lap system calls
  14. -lib dos32.lib            ! _dos_ and _bios_ functions for DOS and BIOS
  15.                 ! system calls
  16. !-lib nafxcr.lib        ! Microsoft Foundation Class library for C++
  17. -386                ! 386 (or later) processor target
  18.  
  19. ! Segment ordering required by the C initialization code
  20. -order class CODE
  21. -order class DATA
  22. -order class CONST
  23. -order class FAR_DATA
  24. -order class BSS
  25. -order segment _DATA
  26. -order segment _data
  27. -order segment _const
  28.  
  29. -order segment _CRT$XIA
  30. -order segment _CRT$XIC
  31. -order segment _CRT$XIZ
  32. -order segment _CRT$XCA
  33. -order segment _CRT$XCC
  34. -order segment _CRT$XCL
  35. -order segment _CRT$XCU
  36. -order segment _CRT$XCZ
  37. -order segment _CRT$XPA
  38. -order segment _CRT$XPX
  39. -order segment _CRT$XPZ
  40. -order segment _CRT$XTA
  41. -order segment _CRT$XTZ
  42.  
  43. ! Give code the "er" (execute/read) and data the "rw" (read/write)
  44. ! attributes, so a debugger (such as 386|SRCBug) will be able to
  45. ! distinguish between code and data symbols
  46.  
  47. !-attributes class CODE er
  48. !-attributes class DATA rw
  49. !-attributes class CONST rw
  50. !-attributes class BSS rw
  51. !-attributes class STACK rw
  52. !-attributes group DGROUP rw
  53.