The gcc -S
option will generate assembly code in AT&T syntax, is there a way to generate files in Intel syntax? Or is there a way to convert between the two?
相关问题
- Error building gcc 4.8.3 from source: libstdc++.so
- Null-terminated string, opening file for reading
- What are the recommended GNU linker options to spe
- What is the right order of linker flags in gcc?
- What's the difference between 0 and dword 0?
相关文章
- gcc/g++ gives me error “CreateProcess: No such fil
- Calls that precede a function's definition can
- How can I use gcc's -I command to add recursiv
- How do I know if std::map insert succeeded or fail
- Is it possible to run 16 bit code in an operating
- How to specify gcc flags (CXXFLAGS) particularly f
- How to generate assembly code with gcc that can be
- Embedding a program's source code into its bin
The
Does work with me. But i can tell another way, although this has nothing to do with running gcc. Compile the executable or the object code file and then disassemble the object code in Intel asm syntax with objdump as below:
This might help.
I have this code in CPP file:
That's code worked with this GCC command line:
It will result *.exe file, and it worked in my experience.
That's all.
Have you tried this?
Untested, but I found it in this forum where someone claimed it worked for them.
I just tried this on the mac and it failed, so I looked in my man page:
It may work on your platform.
For Mac OSX:
Source: https://stackoverflow.com/a/11957826/950427