Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fastcall #25

Open
Alex141642 opened this issue Jun 7, 2023 · 2 comments
Open

Fastcall #25

Alex141642 opened this issue Jun 7, 2023 · 2 comments

Comments

@Alex141642
Copy link

Hey, i wanted to know if this crate support Borland fastcall detouring?
It is a little bit different from C functions, because of the use of eax, edx and ecx.

If not, do you know how to get around it?

@Hpmason
Copy link
Owner

Hpmason commented Jun 8, 2023

This library supports Rust's version of the fastcall ABI, but it doesn't seem to be the same as the Borland fastcall ABI (godbolt example which uses ecx, edx, then the stack). On top of that, Rust's fastcall ABI only seems to support 32-bit targets.

This crate does not support arbitrary calling conventions and would require a lot of work, especially getting it to work with the existing API. I would love to see support for such a feature, but I don't know if I have the time to work on it currently. I can try to work on it in parts, or if someone else is able to work on it I'd appreciate the help.

@Alex141642
Copy link
Author

Okay, thanks for the clarification!
In my case i never worked on detouring lib, but i can git a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants