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

Fix ABI compatibility with C #2

Open
fjolnir opened this issue Sep 3, 2012 · 1 comment
Open

Fix ABI compatibility with C #2

fjolnir opened this issue Sep 3, 2012 · 1 comment
Assignees
Labels

Comments

@fjolnir
Copy link
Owner

fjolnir commented Sep 3, 2012

I just discovered that I'm not properly handling byval passing of structs of floats (and possibly) small ints.
structs like struct { float a,b, c; } need to be expanded to <vector 2x float>, float in order to be passed to a C function.
There are similar cases for other types.

DragonEgg&Clang might be helpful resources

@ghost ghost assigned fjolnir Oct 9, 2012
@fjolnir
Copy link
Owner Author

fjolnir commented Nov 18, 2012

For now this is avoided by going through libffi (which is much much slower of course)

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

No branches or pull requests

1 participant