I have microsoft assembly code in some example.c file. I could compile the 'C' file including the assembly with ICC by adding -use_msasm option in the make file.
Now I added some kernel code in example.c file which requires the header file kernel.h> to be included.
Now when i compile the code i get the following error because linux/kernel.h is having GNU-style assembly . the error is
/usr/src/linux-2.4/include/asm/byteorder.h(16): error: cannot declare Gnu-style
asm when -use_msasm is specified
__asm__("bswap %0" : "=r" (x) : "0" (x));
How can i avoid the error. How can i compile the code having both microsoft style assembly and GNU-style assembly code.