|
Follow these steps to invoke the Intel® C/C++ Compiler from the command line:
- Open a command prompt from the Windows* Start menu:
Intel(R) Software Development Tools » Intel(R) C++ Compiler... » C++ Build Environment...
To build from a regular DOS command prompt you will need to set the Compiler’s build environment variables first. You can set the build environment by executing the “iclvars.bat” which is located in the [intelc-install-dir]\[IA32|EM64T|IA64]\Bin directory in the Compiler’s installation directory tree.
- Invoke the compiler as follows:
icl /c [options... ] inputfile(s) [ /link link_options ]
icl will always use the options set in icl.cfg. “icl.cfg” is located in the same directory as “iclvars.bat”.
- Invoke the linker as follow:
xilink [options... ] inputfile(s)
Example: > icl /c /O2 hello.c > xilink hello.obj
This applies to:
|