LLVMers,
I've hacked Brian's BitterMelon demo to include Stacker and bytecode
analysis information. You can try it out on the mirror at:
http://llvm.x10sys.com/demo/index.cgi
A new language radio buttons below the text input area permits Stacker
input to be compiled and there is an extra option for generating bc data
with llvm-bcanalyzer.
If you're new to LLVM, try pasting the following stacker program into
the page and running it with both optimization and without. That will
give you a pretty good idea of what LLVM does to optimize things.
: print >d CR;
: fibonacci RROT DUP2 + print 3 PICK -- ;
: MAIN 0 print 1 print 44 WHILE fibonacci END ;
This is a fibonacci algorithm in Stacker.
Enjoy!
Reid