Skip to content

Conversation

@spotandjake
Copy link
Member

While trying to play arround with https://github.com/contextfreeinfo/taca/tree/main I noticed that it uses the function table for callbacks which grain didnt support. This pr adds the ability to run the compiler with the --export-function-table flag which takes a name as a string. which causes the function table to be exported under the given name during linking. This is primarily useful for writing foreign bindings.

Accidently duplicated the start section tests
@spotandjake spotandjake requested a review from alex-snezhko June 21, 2023 23:15
@spotandjake
Copy link
Member Author

Converting to draft as this might need some more thought. given that grain closures make functions in the function table a little harder.

@spotandjake spotandjake marked this pull request as draft June 22, 2023 01:05
@spotandjake
Copy link
Member Author

I am closing this pr, I think the feature would still be beneficial eventually but more thought needs to go into it and as we removed the linker with the object file change the implementation here won't be much help in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant