Article 1306 of comp.sys.ibm.pc:
From: [email protected]
Subject: Undocumented Switches in 'cl.exe' for MS-C Ver 4.00
Message-ID: <[email protected]
Date: 26 Jun 87 10:36:35 GMT
Organization: Chem. Dept., Swiss Federal Inst. of Tech. (ETH-Zurich)
Keywords: cl, MSC, amusement
For your amusement, here is a listing of options avaible in cl.exe for MSC
4.00, the documented options were added for completeness. The undocumented
options were 'discovered' using the Norton Utilities, and thier functions
determined "on a rainy day". Hope someone will find them useful. Please
feel free to correct me or fill in the blanks.
Go wild son ...
Listing of options in 'cl' of MS-C Ver. 4.00, documented and undocumented.
Switch Documented Function
-d no Display passes as they happen.
-k no Keep temp files (quiet).
-l* no False friend, see below.
-m# no Make .map file.
-nologo no Don't print logo on startup.
-o# no Name the output (exe) file.
-p no Gives warning about no -Gp.
-pl# no Supply alternate linker.
-p0# no Supply alternate pass 0 cmd.
-p1# no Supply alternate pass 1 cmd.
-p2# no Supply alternate pass 2 cmd.
-p3# no Supply alternate pass 3 cmd.
-z no Print passes (donot compile).
-Bd no Print passes as they happen.
-Bk no Keep temp files (verbose).
-Bl# no Supply alternate linker.
-Bz no Print passes (donot compile).
-B0# no Supply alternate pass 0 cmd.
-B1# no Supply alternate pass 1 cmd.
-B2# no Supply alternate pass 2 cmd.
-B3# no Supply alternate pass 3 cmd.
-K no Keep temp files (see -k).
-L no Make .cod file only.
-M# Xenix See pg 298 MS-C Users Guide.
-PLM no _main & exit unresolved.
-PLMF no no default lib search.
-PLMN no -PLMF + something else?
-S no Make .asm file only.
*, # -- symbols used in the cl.exe string formats. Usually indicates
something further needs to be specified.
Favorite Undocumented Option: -nologo (makes my error.log files much
NB: -l does not act like -l in 'ld' on UNIX systems. 'Cl' just seems
to chop off the -l and treat the rest like an object file to be linked.
Note undocumented 'cc/ld' compatible options, -o, -S, -B?, -O.
I would suspect that -Ba#, -pa# would allow an alternate assembler,
but 'cl' doesn't seem to be able to call 'masm'.
Any one got any good ideas about what -pathgen might do?
Scott Presnell Organic Chemistry
Swiss Federal Institute of Technology (ETH-Zentrum)
CH-8092 Zurich, Switzerland.
uucp:seismo!mcvax!cernvax!ethz!srp ([email protected]
); bitnet:[email protected]
"... I dunno, maybe it was Ewe-tah ..."