compilation problem while compiling assembly code with use_msasm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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 and compile the code which has both styles of
assembly ( GNU-Style and Microsoft assembly)

Thanx
Subbu


"SASKEN RATED THE BEST EMPLOYER IN THE COUNTRY by the BUSINESS TODAY Mercer Survey 2004"


                           SASKEN BUSINESS DISCLAIMER
This message may contain confidential, proprietary or legally Privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux