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

Some generated builtins being ignored? #105

Open
krame505 opened this issue Apr 23, 2018 · 2 comments
Open

Some generated builtins being ignored? #105

krame505 opened this issue Apr 23, 2018 · 2 comments

Comments

@krame505
Copy link
Member

For example, all the __sync_fetch_and_... functions, which are provided by GCC, are indicated as 'ignored' by comments in GeneratedBuiltins.sv. The builtins generator is the one part of ableC that I haven't worked on in the past or been able to figure out on my own, @tedinski are you able to shed some light on what needs to be done here? I am asking because I am wanting to use these intrinsics in an actual project I am developing with ableC, and dealing with this has been kind of a pain.

@tedinski
Copy link
Member

tedinski commented Apr 24, 2018

I don't really remember anything. Just glancing at it, I think it's because they have t on them which the def file comments describe as "signature is meaningless, use custom typechecking"

So (insert shrug emoji here), we just never got around to figuring out what to do about those.

@krame505
Copy link
Member Author

Ah, I see. I did work around this for now by just defining wrapper functions for these intrinsics in a C file that gets linked with the compiled ableC code, but I'll leave this open in case we figure out a better solution in the future.

@tedinski tedinski removed their assignment Apr 25, 2018
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

2 participants