This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: can gcc compile from memory buffer?
- From: "Diego Novillo" <dnovillo at google dot com>
- To: "jonatan perry" <jonatan44 at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 28 Aug 2007 15:50:55 -0400
- Subject: Re: can gcc compile from memory buffer?
- References: <d592e5da0708281244r12794041k1d22b4e9a65f9c91@mail.gmail.com>
On 8/28/07, jonatan perry <jonatan44@gmail.com> wrote:
> can I give to gcc in some way buffer (C code) from memory and let him
> compile it?
No, but GCC can read from stdin (you will need to use -x to specify
the language).