On 06/02/15 07:34, WPB wrote:
> Can anyone explain to me the difference between the g++ and cc1plus
> commands?
cc1plus is the C++ compiler. g++ is the driver. It's the job of g++
to "drive" the whole build process. First it may call the pre-processor
(although I think that's integrated into the compiler now), then
it calls the compiler (cc1plus) to convert the pre-processed source
code into assembler, then it calls the assembler (GAS) to convert the
assembler into a machine code object file, finally it calls the linker
(LD) to combine all the object files and libraries into an executable.
So g++/gcc is the program that manages all the various stages of
compilation, cc1plus is one of those stages.
Lee.
_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK
No comments:
Post a Comment