Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Herwig_V_
Beginner
71 Views

register keyword

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
71 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