read source input file
Daniel Jacobowitz
drow@false.org
Mon Jul 2 01:55:00 GMT 2007
On Sun, Jul 01, 2007 at 06:50:09PM -0700, Ian Lance Taylor wrote:
> > Also the output must be written to a
> > string.
>
> That would be more difficult. The output is written in many different
> places. Probably the only way to do with without a lot of hackery
> would be to somehow invent a FILE which wrote to a string. Note that
> gcc's output is just assembler code which is normally passed to the
> assembler; what would you expect to do with that?
On at least glibc systems - I'm not sure if anyone else has this
interface - there's open_memstream.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gcc
mailing list