Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

register keyword

Herwig_V_
Beginner
187 Views

Hi,

is it possible with the Intel Compiler as it is with GNU GCC to use something like this:

 register int *foo asm ("r12");

E.g. mapping a variable to a fixed processor register ?

Thanks in advance !

BR

Herwig

 

 

0 Kudos
1 Reply
Kittur_G_Intel
Employee
187 Views

Hi Herwig,
Yes, ICC is completely compatible with GCC (command line, source and binary compatible). ICC is GNU based in that it uses the GNU assembler, linker and headers (ex: stdio.h etc.) for ensuring that it's compatible with GNU. For example, if you have GNU version say 4.4 on your system, then ICC will emulate GCC 4.6 for compatibility. ICC will try to figure out which version of GNU you have installed by looking at the gcc or g++ in your PATH. Yes, it should work fine.

Kittur

Reply