Building Wind River* Linux Applications from Workbench IDE

This topic applies to C++, Linux* and Windows* hosts, Wind River* Linux targets, and the Wind River* Workbench IDE.

You can use the Intel C++ Compiler (ICC) from the Wind River* Workbench to build and optimize your applications for the Wind River* Linux target platform.

To use ICC to build your Wind River* Linux (WRL) application projects in Workbench, you must have a WRL platforms project with associated sysroot and pre-configured build specifications (build specs). You can either create one of your own or import the Wind River* Linux SDK that already has an exported WRL platforms project with the associated sysroot and build specifications.


When you install the Intel® System Studio integration layer and create/export 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.

The workflow for using ICC compiler to build using Workbench is as follows:

  1. Enabling ICC to build your application project.
  2. Modifying the ICC compiler and linker flags, if needed.
  3. Building with ICC.

This topic will take you through the workflow using The Hello World Demonstration Program example.

Enabling Intel® C++ Compiler to Build Application Projects

To enable ICC, you must set ICC-specific build specs for the application project.

  1. Launch Wind River* Workbench.
  2. Select File > New > Example > WR Linux Application Sample Project.TheNew Project Sample dialog opens.
  3. In the New Project Sample dialog, under Available Examples, select The Hello World Demonstration Program, and click Finish to close the dialog. A new application project is created.
  4. To set the ICC build specs, go to Project > Properties > Build Properties.The Build Properties dialog opens.
  5. Select Build Support and Specs tab.
  6. Notice the list of build specs under Available and enabled build specs. Against the Active build spec field, select a build spec that has the -icc extension in its name. For example, intel-x86-64-glibc_std-x86-64-wrl6_x86_64_prj-icc, as shown in the screen shot below.

    ICC is now enabled to build your application project.

Modifying Build/Linker Flags

To modify the ICC build and linker flags, follow these steps.

  1. Select Project > Properties. The Project Properties dialog opens.
  2. Select Build Properties > Tools tab.
  3. Against the Build tool field, select C++ - Compiler from the Build tool drop-down menu. The build and linker flags are populated into the Tool flags text field.
  4. Check the flags and modify as needed.

    You have now modified the build and linker flags as required for building the application.

Building Sample Application Project Using ICC in Workbench

To build the sample application, The Hello World Demonstration Project, using ICC, perform the following steps.

  1. Right-click the The Hello World Demonstration Project folder in the Project Explorer and select Build Project.
  2. Click Continue if asked if you want Workbench to generate include paths.

Workbench builds the project with the build output appearing in the Build Console. The output from the application appears in the Console view (if the Console is not visible, select Window > Show View > Console).

IDE or Development Framework: 
For more complete information about compiler optimizations, see our Optimization Notice.