Top "Gnu-assembler" questions

The Gnu Assembler (GAS).

What does cltq do in assembly?

0x0000000000400553 <main+59>: mov -0x4(%rbp),%eax 0x0000000000400556 <main+62>: cltq 0x0000000000400558 <main+64>: shl $0x3,%…

assembly x86 gnu-assembler att
What are CFI directives in Gnu Assembler (GAS) used for?

There seem to be a .CFI directive after every line and also there are wide varities of these ex.,.cfi_…

assembly callstack gnu-assembler stack-unwinding debug-information
Invalid instruction suffix for push when assembling with gas

When assembling a file with GNU assembler I get the following error: hello.s:6: Error: invalid instruction suffix for `push' …

linux compiler-errors assembly gnu-assembler
Calling printf in x86_64 using GNU assembler

I've written a program using AT&T syntax for use with GNU assembler: .data format: .ascii "%d\n" .text .…

linux gcc assembly x86-64 gnu-assembler
What does the bracket in `movl (%eax), %eax` mean?

I have googled enough but could not figure out what the bracket () means. Also, I see some syntax as movl 8(%…

assembly x86 gnu-assembler att addressing-mode
Is it possible to create threads without system calls in Linux x86 GAS assembly?

Whilst learning the "assembler language" (in linux on a x86 architecture using the GNU as assembler), one of the aha …

linux multithreading assembly gnu-assembler
How to install and use GAS (GNU Compiler) on Linux?

I'm using Ubuntu, and I was looking for an assembler compiler for Linux, and I found GAS. I'm trying to …

linux ubuntu assembly gnu-assembler
How to use RIP Relative Addressing in a 64-bit assembly program?

How do I use RIP Relative Addressing in a Linux assembly program for the AMD64 archtitecture? I am looking for …

assembly 64-bit x86-64 gnu-assembler
GAS: Explanation of .cfi_def_cfa_offset

I would like an explanation for the values used with the .cfi_def_cfa_offset directives in assembly generated by …

assembly callstack gnu-assembler dwarf
internal relocation not fixed up

i recently started assembler programming for arm cores. My first little demos, only with the .text section, ran without any …

assembly arm gnu-assembler