Skip to content

Inline Call to Original Function bytes into 'Swap Space' if it's possible on x86. #11

@Sewer56

Description

@Sewer56

When calling convention conversion is not needed, you will have

  • 5 byte jmp into your function
  • 5 byte jmp to original function
  • 5-16 bytes stolen from original function

If it happens to be that we stole <= 6 bytes, which may be common in x86, we can safely inline the instructions to call original into the swap space to save 16 bytes of memory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions