- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using ICC 11.1. I generated assembly file for a c implementation using -S option. But surprisingly the syntax used in this generated file is of GAS rather than of Intel's. And if i write assembly using intel syntax its not able to assemble it. What might be the problem ?
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
icc on gnu platforms should be gcc compatible, including, in principle, observance of -masm=intel. Bugs with respect to that could be submitted on your premier.intel.com account. binutils docs indicate that
.intel_syntax directive should switch as over to Intel syntax. top level binutils site
gives bug submission and mailing list information.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which is the assemble used in the Intel Compiler package?
I tried using .intel_syntax but it did not work. Do I have to install yasm to write assembly using intel syntax ? In what way i can make ICC to compile C files and create assembly in intel's syntax ??
I tried using .intel_syntax but it did not work. Do I have to install yasm to write assembly using intel syntax ? In what way i can make ICC to compile C files and create assembly in intel's syntax ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
icc never provided its own assembler, except in the Itanium release. It takes whichever assembler is pointed to by the g++ installation or present on your PATH (normally part of gnu binutils which you installed as part of g++ development package). icc doesn't have control over binutils, so if binutils doesn't work according to binutils manual, your recourse must be to the binutils mail list or bugzilla, or, as you say, to invoke the assembler of your choice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the information Tim.
Now i have started using yasm to be in sync with intel syntax. But ICC still generates assembly for GAS and whatever assembly I am writing is for YASM. Though this thing works pretty well, I just wanted to know if it is possible to make the compiler to generate assembly for other assembler by changing any settings in ICC?
Now i have started using yasm to be in sync with intel syntax. But ICC still generates assembly for GAS and whatever assembly I am writing is for YASM. Though this thing works pretty well, I just wanted to know if it is possible to make the compiler to generate assembly for other assembler by changing any settings in ICC?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If icc -masm=intel doesn't work, at least to the extent (if) it works for your gcc, you could file a problem report on the grounds of gcc compatibility.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page