www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - LLVM backend for GHC

reply bearophile <bearophileHUGS lycos.com> writes:
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.

Bye,
bearophile
May 17 2010
parent orgoton baberek <sdf sa.com> writes:
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.
May 18 2010