Main Page Related Pages
cccl Usage
cccl is a wrapper around Microsoft's cl.exe. It converts traditional Unix cc command line parameters to their cl.exe equivalents.
Also, cc on Unix serves as a front end to the compiler and the linker. cl.exe, however, is mainly on the compiler (it does support a limited compile and link). The Microsoft linker, link.exe, usually must be invoked explicitly. cccl attempts to choose whether it should invoke cl.exe or link.exe, adjusting the command line parameters as appropriate. It probably does not do a very good job of this, but it seems to work in most common cases. Trying to compile and link in a single step will probably make cccl very confused.
Options
The following options are understood by cccl:
- -ansi Converts to cl.exe's /Za
- -c Converts to cl.exe's /C
- -g[0-9] Converts to cl.exe's /Zi (cl.exe only supports one debug level)
- -Lpath Converts to link.exe's /LIBPATH:path
- -llibrary Converts to liblibrary.lib
- -m386 Converts to cl.exe's /G3
- -m486 Converts to cl.exe's /G4
- -mpentium Converts to cl.exe's /G5
- -mpentiumpro Converts to cl.exe's /G6
- -o If cccl decides to invoke cl.exe, /Fo will be given to cl.exe if the output file is an object file, otherwise /Fe will be given to cl.exe. If cccl decides to run link.exe, then the output file will be given using link.exe's /out: option.
- -pendantic Ignored, cl.exe does not support any equivalent.
- *.(cc|cxx|C) C++ source file, /Tp option given to cl.exe
All other options are passed untouched to either cl.exe or link.exe
cccl will give options to cl.exe to correctly compile C++ source files even if they don't have a .cpp extension (.cc, .cxx, or .C).
If any object file (.o, .obj) or library file (.a, .lib) is seen in the command line, cccl will invoke link.exe.
Generated on Fri Jan 24 10:15:22 2003 for cccl by
1.2.16