Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これで、デフォルトの at&t の代わりに Intel 構文に gcc を使用できることがわかりました
gcc -S -masm=intel test.c
この線があります
mov DWORD PTR [ebp-16]、OFFSET FLAT:ベース
と同じmov dword[ebp-16], baseですか?そうでなければ、私は何をしなければなりませんか?
mov dword[ebp-16], base
はい、mov dword [ebp - 16], base大丈夫なはずです。私はしばらく見ていませんでしoffset flat:た - 時代遅れだと思いますが、それは AT&T のアイデアが.intel_syntax要求していたものです (それを見つけるために Gas のソースコードを調べなければなりませんでした)。Masmと同じ意味offset、または Nasm の素朴な変数名。
mov dword [ebp - 16], base
offset flat:
.intel_syntax
offset