Skip to content
  1. Apr 20, 2010
  2. Apr 01, 2010
  3. Feb 25, 2010
    • Daniel Dunbar's avatar
      Add a minimal C interpreter example. · 0076d944
      Daniel Dunbar authored
       - 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
      0076d944
Loading