C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Interceptor Function (preserve stack and all registers)

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Thu, 1 Aug 2024 15:22:19 +0100
On Fri, Jul 26, 2024 at 11:22 AM Frederick Virchanza Gotham wrote:
>
> The above function marked as an "interceptor" always ends with a jump
> to another function. Up until the jump takes place, it can alter the
> registers and the stack however it pleases, however it must restore
> all registers and the stack before jumping to the other function.


First draft paper on interceptor functions:

      http://www.virjacode.com/papers/interceptor.htm

In the future I need to add loads more stuff, specifically what Lorand
said about Haskell.
I corrected the assembler errors pointed out to me by Thiago.

The paper has GodBolts for GNU 64-Bit, and Microsoft 32-Bit (both x86).

Received on 2024-08-01 14:22:32