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

C codegen: add an option to skip generating the body of the selected functions #164

Merged
merged 1 commit into from
Feb 11, 2022

Conversation

julienfreche
Copy link
Contributor

This patch introduces a new configuration parameter that allows the user to decide if a function body should be generated or skipped.
I found this pretty useful to replace some generated functions with a hand-written/custom implementation that is provided externally. To give an example: it may be desirable to replace the TLB or cache operations with actual TLB/cache ops when Sail is used to emulate instructions on actual hardware.

@julienfreche julienfreche force-pushed the codegen_skip_fun_body branch from 2c56e43 to f3ccb2e Compare February 9, 2022 20:35
@Alasdair
Copy link
Collaborator

Looks useful, thanks!

@Alasdair Alasdair merged commit c373ff1 into rems-project:sail2 Feb 11, 2022
@julienfreche julienfreche deleted the codegen_skip_fun_body branch February 11, 2022 19:13
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

Successfully merging this pull request may close these issues.

2 participants