[cfe-dev] Compilation from memory

deco33000 at yandex.com deco33000 at yandex.com
Wed Jul 15 05:27:54 PDT 2015


Hello,


Is clang able to compile C code from a memory location, instead of from a file ?
I would like to do like so:
http://fdiv.net/2012/08/15/compiling-code-clang-api 

but from a memory pointer (so I would write a char array with the includes and the code and give it to clang) in a running application.

Thanks

-- 
Jog




More information about the cfe-dev mailing list