LLVM backend for GHC

orgoton baberek sdf at sa.com
Tue May 18 00:29:01 PDT 2010


On 17/05/2010 11:08, bearophile wrote:
> LLVM as back-end for a Haskell compiler:
> http://blog.llvm.org/2010/05/glasgow-haskell-compiler-and-llvm.html
>
> So LLVM developers are probably open for changes, for example for patches for LLVM that implement custom calling conventions used by D, etc.
>

According to http://llvm.org/docs/LangRef.html#callingconv

"More calling conventions can be added/defined on an as-needed basis, to 
support Pascal conventions or any other well-known target-independent 
convention."

Even though a calling convention may not be merged with the source tree 
before D increases in popularity, a LLVM D compiler may carry a patch 
for the calling convention with it.


More information about the Digitalmars-d mailing list