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)
How do programs know how much space to allocate for local variables on the stack?
In this simple function, space is allocated for local variables. Then, variables are initialized and printf is called to output them.
000000000040056a <func>:
40056a: 55 ...
Happy Jerry
Votes: 0
Answers: 1
MOVZBQ equivalent in NASM
Background:
I have been learning x86_64 assembly using NASM on a Linux system and was writing a subroutine for strlen(const char *str)
I wanted to copy one byte starting from a pointer stored in rax ...

Ziad
Votes: 0
Answers: 1
Trying to compare two strings in x86-64
global _start
section .data
firstMsg: db "hello worms, please say the passcode", 10
firstLen: equ $ - firstMsg
secondMsg: db "Correct", 10
secondLen: equ $ - secon...
Mr_Arsonist
Votes: 0
Answers: 1
Convert assembly instructions to bytes in gdb
Is there any way I can convert an assembly instruction such as
cmp %rdx,%rbp
to bytes, but from text, not memory (so not by going to an address, printing it as an instruction and then printing it a...
swaggg
Votes: 0
Answers: 1