This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Making gcc read from the standard input
- From: "Tathagato Rai Dastidar" <Tathagato dot Rai dot Dastidar at nsc dot com>
- To: gcc-help at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Thu, 11 Jan 2007 11:59:44 +0530
- Subject: Making gcc read from the standard input
Hello,
Is there a way I can make GCC read a C or C++ code from the standard input
instead of from a file?
In my application software, I am generating some C code on the fly, writing it
to a file, then using GCC to compile it. Instead of that, I want to invoke GCC
through a pipe, and write the C code directly into GCC, instead of writing it
into a file and then calling GCC.
Is this possible?
Regards,
Tathagato Rai Dastidar
Prinicipal Software Engineer,
National Semiconductor Corp.