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 GCC. I know vaguely that the .cfi directives are involved in call frames and stack unwi[详细]
2023-04-08 14:05 分类:问答What is the use of .byte assembler directive in gnu assembly?
While going through some C code having inline assembly I came across the .byte (with a Dot at the beginning) directive.[详细]
2023-04-02 07:55 分类:问答x86 assembler: floating point compare
As part of a compiler project I have to write GNU assembler code for x86 to compare floating point values. I have tried to find resources on how to do this online and from what I understand it works l[详细]
2023-03-28 04:59 分类:问答GAS: jmp to label results in wrong jump?
I am trying to assembly following program: .text .globl _search2 _se开发者_JAVA百科arch2: pushq%rbp movq%rsp, %rbp[详细]
2023-03-25 10:02 分类:问答Need to convert old 32-bit GAS code to a current GAS assembler (pushfl/popl)
I am in the process of trying to compile an old project on my modern machine. I know this old project used an old (2.x) version of GCC/GAS so I need to clean it up so that I can compile it with a curr[详细]
2023-03-23 14:18 分类:问答GCC not saving/restoring reserved registers on function calls
I have a scenario in GCC causing me problems. The behaviour I get is not the behaviour I expect. To summarise the situation, I am proposing several new instructions for x86-64 which are implemented in[详细]
2023-03-23 09:48 分类:问答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(%ebp), %eax[详细]
2023-03-23 07:06 分类:问答How to generate plain binaries like nasm -f bin with the GNU GAS assembler?
I have some NASM files that generally have the structure: [BITS 64] [ORG 0x0000000000200000] start: ... ret[详细]
2023-03-23 02:59 分类:问答What does cltq do in assembly?
0x0000000000400553 <main+59>:mov-0x4(%rbp),%eax 0x0000000000400556 <main+62>:cltq 0x0000000000400558 <main+64>:shl$0x3,%rax[详细]
2023-03-17 00:53 分类:问答In assembly, how do you deal with C struct?
For example, how to prepare parameters for this syscall sys_wait4: asmlinkage long sys_wait4(pid_t pid,unsigned int __user *stat_addr, int options, struct rusage __user *ru)[详细]
2023-03-16 14:48 分类:问答