python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why doesn't gcc zero the upper values of an XMM register when only using the lower value with SS/SD instructions?
For example with such function,
int fb(char a, char b, char c, char d) {
return (a + b) - (c + d);
}
gcc's assembly output is,
fb:
movsx esi, sil
movsx edi, dil
movsx ...
xiver77
Votes: 0
Answers: 1
ARM calling convention for more than 4 params: conflicting information
I'm trying to understand the ARM calling convention on Linux, under gcc, especially with more than 4 params. Stackoverflow, Wikipedia, and ARM docs have information which is sometimes in conflict.
I...
SRobertJames
Votes: 0
Answers: 1
why call glibc function crash without xor %rax, %rax?
i call glibc function, for example, printf:
mov $some_string, %rdi
call printf //<----crash
in some cases, such a call will crash. I add xor %rax, %rax this solves the problem.
I have two questi...
xperious
Votes: 0
Answers: 0
How do you allocate memory on the heap without using libc in linux
I'm trying to alocate memory on the heap without using libc and using linux system calls. I've tried using mmap and brk but brk doesn't return the end of heap like I've read it does for most systems, ...
minneelyyyy
Votes: 0
Answers: 1