本文介绍了从icc获取Intel语法asm输出,而不是默认的AT& T语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我陷入一个问题.我使用gcc编译/汇编我的C代码已有一段时间,并习惯于阅读Intel汇编语法.生成程序集文件时,我使用了-masm=intel标志.

I am stuck at a problem. I've been using gcc to compile/assemble my C code for a while and got used to reading Intel assembly syntax. I used the -masm=intel flag when generating the assembly files.

最近,由于公司的迁移,他们获得了英特尔的icc,并声称它更好.因此,现在我需要使用icc,但是奇怪的是它具有默认的汇编语法,如AT& T.我试图更改它,但是它没有用,所以我联系了英特尔支持,他们也不知道,每个人给我一个矛盾的答案.

Yet recently, due to company migrations, they obtained Intel's icc, claiming it is better. So now I need to use icc, but it was strange that it has the default assembly syntax as AT&T. I tried to change it but it didn't work, so I contacted Intel support and they also don't know and each person gave me a contradicting answer.

是否有一种将gcc和icc集成在一起的方法,这样我就可以使用icc的编译优越性",同时用gcc编译为intel的语法?

Is there a way to integrate gcc and icc so that I use icc's compiling "superiority" while at the same time compiling to intel's syntax with gcc?

我正在使用ubuntu并获得icc版本12.x

I am using ubuntu and got the icc version 12.x

推荐答案

此标志?

   -use_msasm     Support  Microsoft  style  assembly  language  insertion
                  using MASM style syntax and, if requested, output assem-
                  bly in MASM format

https://web.archive.org/web/20120728043315/http://amath.colorado.edu/computing/software/man/icc.html

这篇关于从icc获取Intel语法asm输出,而不是默认的AT& T语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 09:31