Can collect2 just generate the c file?
Ian Lance Taylor
Fri Jan 13 16:26:00 GMT 2006
Perry Smith <firstname.lastname@example.org> writes:
> Can I call g++ with arguments so that it will generate the source
> file (I assume it is a .c file) and then stop.
> I want to call the linker myself. I think that is going to be easier
> to do in my situation.
g++ does not generate C code. It translates directly from C++ to
You can get the assembler code with -S, or the assembler output with
-c. Using -c will give you a .o file which you can use to call the
More information about the Gcc-help