va_arglist

David Daney ddaney@caviumnetworks.com
Tue Dec 2 18:24:00 GMT 2008


Austin, Alex wrote:
> That's all about unpacking an arglist.

No, it does both 'packing' and 'unpacking'.

> I need to pack an arglist. Also, the function in question isn't
> actually printf, but a custom API, and it doesn't have a vprintf
> equivalent.

If your architecture is supported by libffi, and the vargs ABI is the 
same as the ABI for fixed args, libffi should do exactly what you need.

David Daney



More information about the Gcc-help mailing list