简单的方法到c code转换为x86汇编? [英] Easy way to convert c code to x86 assembly?
问题描述
有没有一种简单的方法(如免费程序)可以隐蔽的C / C ++ code到x86汇编?
Is there an easy way (like a free program) that can covert c/c++ code to x86 assembly?
我知道,任何C编译器非常相似,我可以只编译C code,然后拆卸编译过的可执行文件,但这是一种矫枉过正的东西,我要的是转换$几行C $角
I know that any c compiler does something very similar and that I can just compile the c code and then disassemble the complied executable, but that's kind of an overkill, all I want is to convert a few lines of code.
有谁知道某些程序,可以做到这一点?
Does anyone know of some program that can do that?
编辑:我知道,GCC编译器这是否但这是AT& T公司的语法和我期待的Intel语法(不知道这是否就是所谓的Intel语法与否)。在AT&安培; T语法看起来有点像废话,我和一些命令以相反的顺序使用操作数,而不是如何我已经习惯了,它可以变得很混乱
I know that GCC compiler does that but it's AT&T syntax and I'm looking for the Intel syntax (not sure if it's called intel syntax or not). The AT&T syntax looks a bit like gibberish to me and some commands use operands in reverse order and not how I'm used to and it can get really confusing.
推荐答案
GCC不能与-S开关做到这一点,但是这将是AT&放令人作呕的丑陋; T语法
Gcc can do it with the -S switch, but it will be disgustingly ugly at&t syntax.
这篇关于简单的方法到c code转换为x86汇编?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!