ableC icon indicating copy to clipboard operation
ableC copied to clipboard

Some generated builtins being ignored?

Open krame505 opened this issue 7 years ago • 2 comments

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.

krame505 avatar Apr 23 '18 01:04 krame505

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.

tedinski avatar Apr 24 '18 18:04 tedinski

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.

krame505 avatar Apr 24 '18 18:04 krame505