blob: 7dd45fad50483302c38f0f8f0673220147408741 [file] [log] [blame]
Daniel Dunbar0076d942010-02-25 08:49:05 +00001This is an example of Clang based interpreter, for executing standalone C
2programs.
3
4It 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
Alp Toker60c88cb2014-07-01 03:19:50 +000013 4. Use the LLVM JIT functionality to execute the final module.
Daniel Dunbar0076d942010-02-25 08:49:05 +000014
15The implementation has many limitations and is not designed to be a full fledged
16C interpreter. It is designed to demonstrate a simple but functional use of the
17Clang compiler libraries.