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

Generate C header #199

Open
Timmmm opened this issue Jan 25, 2023 · 1 comment
Open

Generate C header #199

Timmmm opened this issue Jan 25, 2023 · 1 comment

Comments

@Timmmm
Copy link
Contributor

Timmmm commented Jan 25, 2023

There's a comment in riscv_sail.h saying Ideally, this would be autogenerated. and I totally agree!

@Timmmm
Copy link
Contributor Author

Timmmm commented Jan 25, 2023

There is a tool called makeheaders which tries to automatically make a header from a C file. I tried it on the RISC-V model and it did a pretty decent job! The main issue is it doesn't extract the enums. From the man page:

[enum] declarations that appear in a .c file are considered private to that .c file and are not copied into any automatically generated files.

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