Re: [GCC 4.x][AMD64 ABI] variadic function

2005-08-23 Thread Florian Weimer
* Matteo Emanuele: > Is it possible to find the register save area and the > overflowing arguments within the called function > without using %ebp (that means with > -fomit-frame-pointer set) and knowing nothing of the > caller? You mean, if the caller called the function as it were a non-variad

[GCC 4.x][AMD64 ABI] variadic function

2005-08-23 Thread Matteo Emanuele
Hi to everyone, I cannot figure out how variadic function are practically implemented. In the called (variadic) function after few 'push's %rsp is suddenly decremented by N bytes: the red area starts 128 bytes below the NEW rsp or %rsp-N above? Is it possible to find the register save area and th