llvm-project/clang/examples
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
..
PrintFunctionNames -fno-rtti is now the default. 2010-01-24 20:43:31 +00:00
clang-interpreter Add a minimal C interpreter example. 2010-02-25 08:49:05 +00:00
wpa -fno-rtti is now the default. 2010-01-24 20:43:31 +00:00
CMakeLists.txt Add missed CMake file for adding clang examples to CMake build. 2009-11-17 09:40:40 +00:00
Makefile Add a minimal C interpreter example. 2010-02-25 08:49:05 +00:00