The new Intel® System Studio released in mid-February combines support for the Intel® Quark SoC with highly optimized compiler and the XDB Intel® JTAG Debugger with support for performanc tuning, in-depth instruction and evend tracing, power & performance analysis, and first class build tools with hand-tuning assembly level optimizations specifically for the Intel® Atom(TM) Processe E38xx.

It targets cross-development for Yocto Project*1.5  and Wind River Linux* 5,6 and the Wind River Intelligent Device Platform.

Both Windows* and Linux* host are supported from within an Eclipse IDE integrated Intel compiler and library set.

Check it out at http://intel.ly/system-studio


1. Build Applications for Wind River* Linux* 5 OS Target

To find out more about Wind River* Linux* 5 and on how to install the required Wind River* Linux* toolchain go to http://www.windriver.com/products/linux/

The required environment variables that need to be set using the source command are:

WRL_TOOLCHAIN=<install_dir>/wrl50/wrlinux-5/layers/wr-toolchain/4.6-60

WRL_SYSROOT=<install_dir>/wrl50/<target>/export/sysroot/intel-xeon-core_glibc_std/bitbake_build/tmp/sysroots/intel-xeon-core

where <install_dir> is the installation path for the Wind River* Linux* software development toolkit, e.g. /export/SDK and target is <ia32> or <intel64>.

The compiler option specifying the cross-compilation is

icc  -platform=wrl50 my_source_file.c

icpc -platform=wrl50 my_source_file.c


The corresponding environment file is located in <install-dir>/bin/<target>


where <install-dir> is /opt/intel/system_studio_2014.x.xxx and target is <ia32> or <intel64>.


2. Build Applications for Wind River* Linux* 6 OS Target

To find out more about Wind River* Linux* 6 and on how to install the required Wind River* Linux* toolchain go to http://www.windriver.com/products/linux/

After installation is completed, set PATH, WR_SYSROOT and WR_GNU_PREFIX environment variables to match cross-compilation tools directories:

32-bit target:

export PATH=<install_dir>/x86_64-linux/usr/bin/i586-wrs-linux:$PATH

export WR_SYSROOT=<install_dir >/qemux86

export WR_GNU_PREFIX=i586-wrs-linux-

64-bit target:

export PATH=<install_dir /x86_64-linux/usr/bin/x86_64-wrs-linux:$PATH

export WR_SYSROOT=<install_dir>/qemux86-64

export WR_GNU_PREFIX=x86_64-wrs-linux-

 

When compiling for Wind River* Linux* 6 target, specify -gnu-prefix= and --sysroot= options.

To compile a C source file (for example, my_source_file.c) for Wind River* Linux* 6 target, use a command similar to the following:

icc -gnu-prefix=$WR_GNU_PREFIX --sysroot=$WR_SYSROOT my_source_file.c

3. Build Applications for Yocto Project* Target

The Intel® System Studio installer will automatically integrate the Intel® C++ Compiler with an existing Application Development Toolkit (ADT) installation for Yocto Project* 1.5

Please refer to the Yocto Project* Application Development Toolkit User’s Guide at http://www.yoctoproject.org/docs/current/adt-manual/adt-manual.html for details on the Application Development Toolkit Usage.

To be able to use the Application Development Toolkit with the Intel® C++ Compiler it has to be installed using the Application Development Toolkit tarball and installer script available at http://downloads.yoctoproject.org. More detailed information on this can be found at http://www.yoctoproject.org/docs/current/adt-manual/adt-manual.html#using-the-adt-installer

The Yocto Project* distributions and board support packages can be found at http://www.yoctoproject.org/download

Yocto Project* documentation can be found at http://www.yoctoproject.org/documentation

The required environment variables that need to be set using the command are:

YL_SYSROOT=/opt/poky/1.x/sysroots/i586-poky-linux

YL_TOOLCHAIN=/opt/poky/1.x/sysroots/i686-pokysdk-linux/usr/bin


The compiler option specifying the cross-compilation is

icc -platform=yl<version> my_source_file.c

icpc -platform=yl<version> my_source_file.c


or


icc -platform=yl<version> my_source_file.c

icpc -platform=yl<version> my_source_file.c

 

The corresponding environment file is located in <install-dir>/bin/<target>,

where <install-dir> is /opt/intel/system_studio_2014.x.xxx and target is <ia32> or <intel64>.

 

4. Compiler Usage for Intel® Quark Processor

When using the Intel® C++ Compiler use of the following two compiler options is recommended:

-mia32 –falign-stack=assume-4-byte

-mia32:

            tells the compiler to generate code for IA-32 architecture

-falign-stack=assume-4-byte :

            tells the compiler to assume the stack is aligned on 4-byte boundaries. The compiler can dynamically adjust the stack to 16-byte alignment if needed. This will reduce the data size necessary to call routines.