[cfe-dev] Compilation from memory

Manuel Klimek klimek at google.com
Wed Jul 15 05:52:40 PDT 2015


Yes. Look at libtooling.

On Wed, Jul 15, 2015 at 2:34 PM <deco33000 at yandex.com> wrote:

> 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
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150715/222cb7d7/attachment.html>


More information about the cfe-dev mailing list