[sldev] LLVM?

Argent Stonecutter secret.argent at gmail.com
Wed Oct 31 08:49:22 PDT 2007


I wonder if the LLVM might not be a better way to handle future  
scripting needs than Mono. Modifying the existing LSL compiler to  
generate LLVM code wouldn't be hard at all: LSL is a stack oriented  
language, and that's one of the provided front ends.

This wouldn't be a short term project, but it would be something to  
consider for future implementations. LLVM isn't as mature as Mono,  
but it's also a lot smaller in scope and a lot of the scope of Mono  
includes a lot of stuff that you simply don't need in a simulator...  
and it's being used by a number of companies that are doing things  
much more like scripting a simulator than implementing a general  
purpose OS. LLVM is a "pluggable" compiler environment like Tcl is a  
pluggable interpreter environment.

Personally, as a compiler guy, I find http://llvm.org/docs/ 
Stacker.html quite exciting. You could possibly plug the LLVM basic  
blocks directly into indra.y and have it generate code directly.




More information about the SLDev mailing list