I'm looking for a gcc option that will make it read the source file from standard input, basically, so I could do something like this to create an object file from a tool like flex that generates C code ( flex -t writes the generated C to standard output):
flex -t lexer.l | gcc -o lexer.o -magic-option-here
because I really don't care about the generated C file.
Is there something like this, or do I need to use temporary files?
gcc command-line flex-lexer pipe
Zifre Jun 16 '09 at 20:01 2009-06-16 20:01
source share