This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: x86 64 bit function argument bug?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]