Re:Say Hello to X64 Assembly Part 3
by alecco on Friday September 19, 2014 @05:08PM
(#8342498)
yasm -p gas?
[ Parent
| on HN ]
That would mean still using the AT&T syntax.
I started coding x86 Assembly back when MS-DOS 3.3 was modern in PC world, so never got to love AT&T syntax.
Specially after my porting experiment.
I needed to change a compiler backend to depend only on binutils (gas & ld).
So the existing NASM code had to ported.
NASM macros couldn't be mapped to what Gas offers and I also had some issues getting my head around how to write the addressing modes.
I was using a common trick for code generation.
Generate bytecodes that are actually Assembler macros.
A simple way to get static binaries, even if the performance is not optimal.
In the end I gave up and made the backend generate the respective Assembly code directly.