tyfkda / xcc

Standalone C compiler/assembler/linker/libc for x86-64/aarch64/riscv64/wasm
https://tyfkda.github.io/xcc/
MIT License
197 stars 14 forks source link

Allocate extra stack frame in function prologue #140

Open tyfkda opened 6 months ago

tyfkda commented 6 months ago

When function call uses stack frame (e.g. struct argument or result, vaargs) stack pointer manipulation is required. To avoid it, allocate extra stack frame in function prologue.

Concern: