3 ms·
yasm -p gas?
by alecco 12y ago
yasm -p gas?
- pjmlp 12y agoThat 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.