This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Thanks, Perry
Perry Smith <pedz@easesoftware.net> 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 assembler code.
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 linker yourself.
Ian
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |