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

Typing functions at runtime or calling untyped functions #16

Open
porky11 opened this issue Jan 1, 2021 · 0 comments
Open

Typing functions at runtime or calling untyped functions #16

porky11 opened this issue Jan 1, 2021 · 0 comments

Comments

@porky11
Copy link

porky11 commented Jan 1, 2021

Since I want to load dynamic libraries manually at runtime, I might also first know about the function types at runtime, so doing it like in the example code, where you cast the functions found by a name functions to a specific function type, won't work.
Specifically, I'm working on a scripting language, and want to add support for calling extern functions. This would be the best way to call it.
What I basically want is something method, which takes the name and the byte representations of arguments, and returns the byte representation of the return value.
Is something like this possible as well?
This might also help for calling variadic functions like printf, where I don't know a real dynamic way yet.

@porky11 porky11 changed the title Typing functions at runtime Typing functions at runtime or calling untyped functions Jan 1, 2021
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

1 participant