skidup
skidup

Reputation: 45

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?

Upvotes: 3

Views: 11209

Answers (2)

Anshul Negi
Anshul Negi

Reputation: 41

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

Type this in command prompt(location of gcc depends on where you have install dev-C++),it will generate assembly file,in my case try.s

Upvotes: 0

Pubby
Pubby

Reputation: 53097

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.

Upvotes: 4

Related Questions