The Wayback Machine - https://web.archive.org/web/20040507112504/http://llvm.org:80/demo/
The LLVM Compiler Infrastructure

Try out LLVM in your browser!

Bitter Melon the cat says, paste a C/C++ program in the text box or upload one from your computer, and you can see the equivalent LLVM code, meow!!

If you want to upload a file from a program with header files, you should preprocess it (e.g., with the -save-temps or -E options to gcc) first.

Upload a file:

Or type your source code in below:

By the way, what language is this code in?: CC++

Click here if you want Bitter Melon to run the resulting code through c++filt. Warning, the LLVM code produced will probably not be lexically valid, but it will be easier to understand.

    Demangle C++ names with c++filt

Bitter Melon can also run the link-time optimizer for you, if you like (but she won't link your code with any libraries). Note that you have to define 'main' in your program for this to make much of a difference.

    Run link-time optimizer

Would you believe the cat even has a stopwatch? Click here to get detailed compilation statistic and timings from each pass.

    Show detailed statistics

If you have questions about the LLVM code generated by the front-end, please check the FAQ (e.g., what is this __main thing?). If the FAQ does not address it, please send an email to the llvmdev mailing list.

Note that the generated LLVM code will be easier to read if you use stdio (e.g., printf) than iostreams (e.g., std::cout).


gaeke -at- uiuc.edu