Intel Build Syntax Offset

Now that I know that u can use gcc for Intel syntax instead of the default value in & t with

gcc -S -masm = intel test.c

This line

mov DWORD PTR [ebp-16], OFFSET FLAT: base

Is this the same as mov dword[ebp-16], base ? Otherwise, what should I do?

+4
source share
1 answer

Yes, mov dword [ebp - 16], base should be fine. I have not seen offset flat: for a while - I think this is deprecated, but this is what AT&T required .intel_syntax idea (I had to look at the gas source code to find out). Same as offset for Masm, or the name of an uncertified variable in Nasm.

+4
source

Source: https://habr.com/ru/post/1443615/


All Articles