简体   繁体   中英

How can I get Dev-C++ to generate intel assembly from c code?

I understand that compilers convert c source code to assembly and then to machine code. I searched through every compiler setting I could find, and their website but I can't get it to generate assembly. Also, the website states that Dev-C++ uses AT&T assembly, can I also convert from that to Intel?

Dev-C++ seems to use GCC.

You can try this option: gcc -S -masm=intel as answered in this question: How do you use gcc to generate assembly code in Intel syntax?

I do not know how to set command line options on Dev-C++ but guides can be easily found.

C:\Program Files (x86)\Dev-Cpp\MinGW32\bin>gcc -S -masm=intel try.cpp

在命令提示符下键入此命令(gcc的位置取决于您安装dev-C ++的位置),它将生成汇编文件,在我的情况下为try.s

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM