Home | History | Annotate | only in /external/clang/examples/clang-interpreter
Up to higher level directory
NameDateSize
CMakeLists.txt10-Mar-2015307
main.cpp10-Mar-20155.7K
Makefile10-Mar-2015989
README.txt16-Dec-2014653

README.txt

      1 This is an example of Clang based interpreter, for executing standalone C
      2 programs.
      3 
      4 It demonstrates the following features:
      5  1. Parsing standard compiler command line arguments using the Driver library.
      6 
      7  2. Constructing a Clang compiler instance, using the appropriate arguments
      8     derived in step #1.
      9 
     10  3. Invoking the Clang compiler to lex, parse, syntax check, and then generate
     11     LLVM code.
     12 
     13  4. Use the LLVM JIT functionality to execute the final module.
     14 
     15 The implementation has many limitations and is not designed to be a full fledged
     16 C interpreter. It is designed to demonstrate a simple but functional use of the
     17 Clang compiler libraries.
     18