On Jan 10, 2007, at 10:29 PM, Tathagato Rai Dastidar wrote:
Is there a way I can make GCC read a C or C++ code from the standard input instead of from a file?
$ echo 'int i;' | gcc -S -xc - -o - .comm _i,16 .subsections_via_symbolsAlso, some systems have things like /dev/fd0 and /dev/stdin. They are files that can be read, even if gcc didn't support the "-" filename.