Category "stack-memory"

Allocate a vector of bytes on stack in assembly x86

I try to put on stack the values contained by array_output but every time I print the values from the stack it prints just 0s. If I try to print the array simpl

Not adding the stack bytes to the .EXE file with MASM 5.0

I'm writing two assembly files for DOS: hm2.asm: .8086 DGROUP group _DATA, STACK ; Required by MASM 3.0 and 4.0. ; MASM 4.0 doesn't support USE16 (but MASM

"There is no need to deallocate the stack at the end of the function when the inner-stack frame isn't modified", but it is being modified in this case

Here is a simple function #include <stdio.h> int foo() { int a = 3; int b = 4; int c = 5; return a * b * c; } int main() { int a = f

Print out value of stack pointer

How can I print out the current value at the stack pointer in C in Linux (Debian and Ubuntu)? I tried google but found no results.