Home > Blockchain >  Can you use the red zone with/across syscalls?
Can you use the red zone with/across syscalls?

Time:07-07

Consider this GNU Assembler program, that copies one byte at a time from stdin to stdout, with a delay of one second between each:

#include <sys/syscall.h>

.global _start

_start:
    movq $1, -16(%rsp)
    movq $0, -8(%rsp)
    movl $1,            
  • Related