lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Jul 7, 2014 at 4:28 PM, Javier Guerra Giraldez
<javier@guerrag.com> wrote:
> - manually build the call stack, complying with your compiler exact
> value layout; cast your function pointers to a non-argument one and
> call it.  this would be akin to the reverse of va_arg().

It's even more expensive (if you measure expensive by complexity)
since the exact ABI is tricky and depends on the platform - something
like libffi is needed to do the job.