LLVM's llc utility can compile an LLVM bitfile into an assembly file: However, the resulting .s file can't be assembled as-is with e.g. GCC's assem ...
LLVM's llc utility can compile an LLVM bitfile into an assembly file: However, the resulting .s file can't be assembled as-is with e.g. GCC's assem ...
The thing is that I cannot force gnu as interpret jmp as short or near, it constantly interprets it as far. For instance, the following code causes s ...
I'm trying to translate dd from NASM (or MASM) to GAS. I can't find it anywhere in the manual. ...
I really dislike the GNU Assembler syntax and I some existing code written with NASM syntax that would be quite painful and time consuming to port. I ...
I have looked at similar questions, but cannot seem to find what is wrong with my code. I am attempting to make the "write" syscall on MacOS to print ...
I am a Hobby programmer here now trying to get into assembler for an android phone. I cannot open a disk file. I would dearly like to get past this hu ...
I had set the gdt table using this data And I do mov $16, %eax ; mov %eax, %ds to load DS with a GDT entry. Now I change the gdt_table, or just se ...
I learn assembler(AT&T). I tried to write program to find the length of the biggest string in record. During linking with command I got error ...
test.S I got the disassembly code file by doing this test_dis.txt My question I wonder why I got code like this mov %eax,%ds, which doesn' ...
I have some assembly. I'd like it to be at the end of a 4K block. Currently the section is being put at 0x1000003C0, I'd like it to be located at 0x10 ...
I have a file, foo.S, which contains ARM thumb instructions, on an Ubuntu 22.04 x86_64 machine. Is it possible to convert this into an ARM object file ...
I am learning to program a system core of i386 by watching some videos. I've known some procedures about entering protected mode: In a .code16 file, ...
How can I expand the usage of macro f x10,x11? gcc -E doesn't seem to help, FWIW. ...
Is there a way to have the assembler (gas or clang) output an error, not a warning, if the operand to a .byte directive overflows? I'm specifically t ...
Currently trying to convert this line to GNU AS. I'm not sure what I should use. ...
I'm migrating from Ride7 to Eclipse CDT with GNU arm-none-eabi toolchain. In my project, I have a hardware register description library using .equ di ...
I want to compile the following asm.S file I have tried gcc -m32 asm.S as well as gcc -m32 asm.S -fPIC and a litany of other things but I keep runn ...
In .S assembly code, I want to write a macro that takes as "argument" another macro, that is then applied to multiple registers. A minimal example wou ...
I wanted to load the address of function to a register. I have written the following inline assembly. The inline assembler returns the error "Error: u ...
I try to follow the tutorial from wiki.osdev.org about the setup of a GDT. I tried to convert the example code from NASM to GAS Syntax but the tool in ...