17 ms·
This answer references Chicken Scheme, which compiles to C - I'm curious, is there any work on a Scheme that compiles to LLVM? (A brief search didn't reveal any
by jrajav 14y ago
This answer references Chicken Scheme, which compiles to C - I'm curious, is there any work on a Scheme that compiles to LLVM? (A brief search didn't reveal anything that's been updated in the last 4-5 years.)
- fosap 14y agoyou can compile the c code to llvm IR, but why would you do that? LLVM is not a very good VM it's not platform agnostic, some stuff like the the pointer size are set a compile time, c seems to be a better platform agnostic assembler.
- chc 14y agoIt's not really a VM. It's more like a tool set for writing compilers.
- chc 14y agoPretty much all the major Schemes predate LLVM, and modifying a compiler to use LLVM instead of its existing tools is not necessarily trivial and not necessarily worth it.
- bitwize 14y agoGambit is getting backends that include x86 and JavaScript Real Soon Now. There has been LLVM work, but I don't think it progressed very far.
- mark_l_watson 14y ago+1 for mentioning Gambit-C. I don't use Gambit-C anymore, but I used to use it a fair amount for writing small utility programs. Gambit-C can be used to build very small and efficient executables. Gambit-C doesn't have the huge library that Racket or Chicken have but it is great for building small command line utilities, etc.