[cfe-dev] clang and the haskell calling convention
miguel sofer
miguel.sofer at gmail.com
Fri Oct 15 16:34:57 PDT 2010
Sorry if this question popped up before, looked in the lists and did not
find anything about it.
I am experimenting with letting some C functions in my code use llvm's
new "cc 10", but could not find out how to enrol clang to help me. Right
now I am playing with:
* giving them an __attribute__((fastcall))
* emitting llvm code
* substituting "cc 10" for "x86_fastcallcc" everywhere
* ending the compilation
Seems to work fine for my first tiny tests, but it is a terrifyingly
fragile way to do things. Do I have any better option?
Cheers, thx
Miguel
More information about the cfe-dev
mailing list