[LLVMdev] Compiling Kaleidoscope on Windows
russell.wallace at gmail.com
Sat Jan 30 08:47:57 PST 2010
I'm trying to get the Kaleidoscope tutorial mini compiler working on
Windows (as a trial run for developing a compiler using LLVM).
Kaleidoscope uses the C++ linkage method of code generation (as
opposed to spitting out intermediate code in a text or binary file),
which as I understand it is the preferred way of doing it for a few
reasons, one of them being that it gives you JIT capability, which in
turn lets you provide an interactive mode.
This requires compiling it with the LLVM headers, and presumably
libraries, which don't seem to be included in the Windows binary
distribution of LLVM, so presumably it is necessary to go to the
Is it necessary to compile the whole shebang from source, or would it
suffice/be easier to just compile the libraries? All the references I
could find with Google, discuss the first option.
According to http://stackoverflow.com/questions/2129263/how-to-build-llvm-using-gcc-4-on-windows
it seems LLVM prefers to use MinGW 3.4.5 rather than 4.x, is this
discusses a procedure involving MinGW 3.4.5, is that the recommended
procedure? He mentions LLVM version 2.2, which is a few versions
behind the current release. Are the versions of the various components
of MinGW he mentions, still the preferred ones for working with LLVM
More information about the llvm-dev