Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

generate Intel assembly

elie27
Beginner
366 Views
I recently bought the Intel compiler toolkit, and not upon trying it I am having difficulty generating assembly using intel syntax. It is giving my AT&T syntax in the assembly. Is there any way to generate intel assembly?
Thanks
0 Kudos
3 Replies
TimP
Honored Contributor III
366 Views
The Windows versions of the tools default to intel asm syntax, as do some of the linux profilers. Some of the linux tools should recognize -masm=intel switch to over-ride the overwhelmingly preferred att default.
0 Kudos
elie27
Beginner
366 Views
I am using it on linux and when I put -masm=intel it gives me unrecognized -m. Is there anything wrong in the installation?
PS. I also tried -use-masm=intel ; -msasm=intel ; -use-msasm=intel; some of them it was weird they didn't give errors and they showed up on top of the assembly file, but the syntax was still AT&T.
Thanks for your reply
0 Kudos
Mark_S_Intel1
Employee
366 Views
0 Kudos
Reply