Go to file
Daniel Dunbar 0076d94466 Add a minimal C interpreter example.
- Demonstrates how to build a standalone tool which loads source code using the
   Driver and Frontend libraries, and then uses CodeGen and the JIT to actually
   execute the code.

 - Still more complicated than it should be, but hey its only 153 lines. :)

--
ddunbar@ozzy:tmp$ cat hello.c
#include <stdio.h>
int main() { printf("hello world\n"); return 0; }
ddunbar@ozzy:tmp$ clang-interpreter hello.c
hello world
--

llvm-svn: 97133
2010-02-25 08:49:05 +00:00
clang Add a minimal C interpreter example. 2010-02-25 08:49:05 +00:00
compiler-rt add __sync_synchronize. Needed by compiler when emitting thumb1 with -fno-builtin 2010-02-02 21:34:04 +00:00
llvm Make the side-numbering of instructions used by metadata (which is needed to 2010-02-25 08:30:17 +00:00