x86 64 bit function argument bug?

Falk Hueffner falk.hueffner@student.uni-tuebingen.de
Sun May 4 13:54:00 GMT 2003


Stephen Biggs <xyzzy@hotpop.com> writes:

> I want to take an address of an argument and dereference it to
> access the value that is passed to a function on the stack.

That should work just fine. If it doesn't, it's a bug.

Note that many architectures don't actually pass arguments on the
stack; but if you take the address of an argument, it's pushed there.

> Basically I am trying to do varargs/stdarg without using varargs or
> any built-in functions.

That is impossible to do portably.

-- 
	Falk



More information about the Gcc mailing list