This topic applies to C++, and Wind River* Linux hosts and targets.
You can use the Intel® C++ Compiler (ICC) component of the Intel® System Studio to build and optimize Wind River* Linux applications using the Wind River* Linux SDK (WRL SDK) from the command line, without using the Workbench IDE.
To use ICC to build your Wind River* Linux (WRL) application projects, you must have a WRL platforms project with associated sysroot and pre-configured build specifications (build specs). You can create a platforms project of your own or obtain it from a platform developer via the Wind River* Linux SDK.
Note
When you install the Intel® System Studio Wind River* Workbench integration layer and create/obtain the Wind River* Linux platforms project, the Intel® C++ Compiler working environment scripts are generated automatically in the same folder where the default GCC compiler environment scripts are located. The ICC environment setting file has the same name as the GCC environment setting file but with an -icc
extension.
Refer to the Wind River* Workbench User's Guide for detailed instructions on building a Wind River* Linux platforms project.
To build a Wind River* Linux application from the Wind River* Linux SDK shell console, you overwrite the compilation environment variables such as CC, CXX, AR, LD, and others, using source and the ICC environment scripts file on the command line. For example, on a Linux system:
- Setup the GCC development environment and build a hello world application. In a terminal window, enter the following:
$ source <WRL_SDK_DIR>/environment-setup-i586-wrs-linux $ $CC helloworld.c
where
<WRL_SDK_DIR>
is the root folder of the Wind River* Linux SDK installation folder. - Setup the ICC development environment and build a 'hello world' application. In the terminal window, enter the following:
$ source <WRL_SDK_DIR>/environment-setup-i586-wrs-linux-icc $ $CC helloworld.c
You can check the contents of the <WRL_SDK_DIR>/environment-setup-<xxx>-icc file and update the flags for your compilation, if necessary.