Re: Passing a hidden argument in a dedicated register

2024-12-16 Thread Alexander Monakov
On Mon, 16 Dec 2024, Florian Weimer via Gcc wrote: > I would like to provide a facility to create wrapper functions without > lots of argument shuffling. To achieve that, the wrapping function and > the wrapped function should have the same prototype. There will be a > trampoline that puts add

Passing a hidden argument in a dedicated register

2024-12-16 Thread Florian Weimer via Gcc
I would like to provide a facility to create wrapper functions without lots of argument shuffling. To achieve that, the wrapping function and the wrapped function should have the same prototype. There will be a trampoline that puts additional data somewhere (possibly including the address of the

Re: Passing a hidden argument in a dedicated register

2024-12-16 Thread Michael Clark via Gcc
> On 17 Dec 2024, at 5:44 AM, Alexander Monakov wrote: > >  >> On Mon, 16 Dec 2024, Florian Weimer via Gcc wrote: >> >> I would like to provide a facility to create wrapper functions without >> lots of argument shuffling. To achieve that, the wrapping function and >> the wrapped function sho