home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / c / undoc_cl.swi < prev    next >
Internet Message Format  |  1994-03-04  |  3KB

  1. Date: Friday, 26 June 1987  04:36-MDT
  2. From: srp at ethz.UUCP (Scott Presnell)
  3. To:   Info-IBMPC at MIT-MC
  4. Re:   Undocumented Switches in 'cl.exe' for MS-C Ver 4.00
  5.  
  6. For your amusement, here is a listing of options available in cl.exe for MSC
  7. 4.00, the documented options were added for completeness. The undocumented
  8. options were 'discovered' using the Norton Utilities, and their functions
  9. determined "on a rainy day". Hope someone will find them useful. Please
  10. feel free to correct me or fill in the blanks.
  11.  
  12. Go wild son ...
  13.  
  14. --------
  15.  
  16. Listing of options in 'cl' of MS-C Ver. 4.00,  documented and undocumented.
  17.  
  18.     Switch        Documented        Function
  19.     -c        yes
  20.     -d        no            Display passes as they happen.
  21.     -dos        Xenix
  22.     -i        no
  23.     -imp        no
  24.     -n        no
  25.     -s        no
  26.     -k        no            Keep temp files (quiet).
  27.     -link        yes
  28.     -l*        no            False friend, see below.
  29.     -m#        no            Make .map file.
  30.     -nl#        no    
  31.     -nologo        no            Don't print logo on startup.
  32.     -pack        yes
  33.     -pathgen    no
  34.     -o#        no            Name the output (exe) file.
  35.     -p        no            Gives warning about no -Gp.
  36.     -pa#        no
  37.     -pl#        no            Supply alternate linker.
  38.     -p0#        no            Supply alternate pass 0 cmd.
  39.     -p1#        no            Supply alternate pass 1 cmd.
  40.     -p2#        no            Supply alternate pass 2 cmd.
  41.     -p3#        no            Supply alternate pass 3 cmd.
  42.     -pL#        no
  43.     -u        yes
  44.     -v#        no
  45.     -w        yes
  46.     -z        no            Print passes (do not compile).
  47.  
  48.     -A*        yes
  49.     -Ba#        no
  50.     -Bd        no            Print passes as they happen.
  51.     -Bk        no            Keep temp files (verbose).
  52.     -Bl#        no            Supply alternate linker.
  53.     -Bz        no            Print passes (do not compile).
  54.     -B0#        no            Supply alternate pass 0 cmd.
  55.     -B1#        no            Supply alternate pass 1 cmd.
  56.     -B2#        no            Supply alternate pass 2 cmd.
  57.     -B3#        no            Supply alternate pass 3 cmd.
  58.     -BL#        no
  59.     -C        yes
  60.     -CSOFF        no
  61.     -D#        yes
  62.     -E        yes
  63.     -EP        yes
  64.     -FP*        yes
  65.     -Fa(*)        yes
  66.     -Fe*        yes
  67.     -Fc(*)        yes
  68.     -Fl(*)        yes
  69.     -Fs(*)        yes
  70.     -Fo*        yes
  71.     -Fm(*)        yes
  72.     -Gt(*)        yes
  73.     -G*        yes
  74.     -HELP        yes
  75.     -H#        yes
  76.     -I#        yes
  77.     -K        no            Keep temp files (see -k).
  78.     -J        yes
  79.     -L        no            Make .cod file only.
  80.     -M#        Xenix            See pg 298 MS-C Users Guide.
  81.     -ND#        yes
  82.     -NM#        yes
  83.     -NT#        yes
  84.     -O(*)        yes
  85.     -P        yes
  86.     -PLM        no            _main & exit unresolved.
  87.     -PLMF        no            no default lib search.
  88.     -PLMN        no            -PLMF + something else?
  89.     -S        no            Make .asm file only.
  90.     -U#        yes
  91.     -V#        yes
  92.     -W#        yes
  93.     -X        yes
  94.     -Z*        yes
  95.  
  96. *, # -- symbols used in the cl.exe string formats. Usually indicates
  97. something further needs to be specified.
  98.  
  99. Favorite Undocumented Option: -nologo (makes my error.log files much
  100. smaller).
  101.  
  102. N.B.: -l does not act like -l in 'ld' on UNIX systems. 'Cl' just seems
  103. to chop off the -l and treat the rest like an object file to be linked.
  104.  
  105. Note undocumented 'cc/ld' compatible options, -o, -S, -B?, -O.
  106.  
  107. I would suspect that -Ba#, -pa# would allow an alternate assembler,
  108. but 'cl' doesn't seem to be able to call 'masm'.
  109.  
  110. Any one got any good ideas about what -pathgen might do?
  111.  
  112. Regards,
  113.  
  114. -------
  115. Scott Presnell                         Organic Chemistry
  116. Swiss Federal Institute of Technology  (ETH-Zentrum)
  117. CH-8092 Zurich, Switzerland.
  118. uucp:seismo!mcvax!cernvax!ethz!srp (srp@ethz.uucp); bitnet:Benner@CZHETH5A
  119. "... I dunno, maybe it was Ewe-tah ..."
  120.