Relationship between cc1 and gcc?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
22
down vote

favorite
9












I'm trying to install Ruby in my home directory on a Linux server (without root access), which of course requires using gcc. The closest thing I can find is a directory by that name which (if you go deep enough) contains cc1:



>: find / -iname gcc 2> /dev/null
/usr/libexec/gcc


>: tree -if /usr/libexec/gcc
/usr/libexec/gcc
/usr/libexec/gcc/x86_64-redhat-linux
/usr/libexec/gcc/x86_64-redhat-linux/4.1.1
/usr/libexec/gcc/x86_64-redhat-linux/4.1.1/cc1
/usr/libexec/gcc/x86_64-redhat-linux/4.1.2 -> 4.1.1


The fact that CC1 redirects to GCC on Wikipedia seems to imply something close to identity, however there's no other mention of CC1 on the GCC page besides the note about redirection, and Googling hasn't gotten me anything useful, and my attempts to use cc1 in place of gcc have failed.



What exactly is the relationship between them? And does it offer me any hope of compiling Ruby on this machine?










share|improve this question



























    up vote
    22
    down vote

    favorite
    9












    I'm trying to install Ruby in my home directory on a Linux server (without root access), which of course requires using gcc. The closest thing I can find is a directory by that name which (if you go deep enough) contains cc1:



    >: find / -iname gcc 2> /dev/null
    /usr/libexec/gcc


    >: tree -if /usr/libexec/gcc
    /usr/libexec/gcc
    /usr/libexec/gcc/x86_64-redhat-linux
    /usr/libexec/gcc/x86_64-redhat-linux/4.1.1
    /usr/libexec/gcc/x86_64-redhat-linux/4.1.1/cc1
    /usr/libexec/gcc/x86_64-redhat-linux/4.1.2 -> 4.1.1


    The fact that CC1 redirects to GCC on Wikipedia seems to imply something close to identity, however there's no other mention of CC1 on the GCC page besides the note about redirection, and Googling hasn't gotten me anything useful, and my attempts to use cc1 in place of gcc have failed.



    What exactly is the relationship between them? And does it offer me any hope of compiling Ruby on this machine?










    share|improve this question

























      up vote
      22
      down vote

      favorite
      9









      up vote
      22
      down vote

      favorite
      9






      9





      I'm trying to install Ruby in my home directory on a Linux server (without root access), which of course requires using gcc. The closest thing I can find is a directory by that name which (if you go deep enough) contains cc1:



      >: find / -iname gcc 2> /dev/null
      /usr/libexec/gcc


      >: tree -if /usr/libexec/gcc
      /usr/libexec/gcc
      /usr/libexec/gcc/x86_64-redhat-linux
      /usr/libexec/gcc/x86_64-redhat-linux/4.1.1
      /usr/libexec/gcc/x86_64-redhat-linux/4.1.1/cc1
      /usr/libexec/gcc/x86_64-redhat-linux/4.1.2 -> 4.1.1


      The fact that CC1 redirects to GCC on Wikipedia seems to imply something close to identity, however there's no other mention of CC1 on the GCC page besides the note about redirection, and Googling hasn't gotten me anything useful, and my attempts to use cc1 in place of gcc have failed.



      What exactly is the relationship between them? And does it offer me any hope of compiling Ruby on this machine?










      share|improve this question















      I'm trying to install Ruby in my home directory on a Linux server (without root access), which of course requires using gcc. The closest thing I can find is a directory by that name which (if you go deep enough) contains cc1:



      >: find / -iname gcc 2> /dev/null
      /usr/libexec/gcc


      >: tree -if /usr/libexec/gcc
      /usr/libexec/gcc
      /usr/libexec/gcc/x86_64-redhat-linux
      /usr/libexec/gcc/x86_64-redhat-linux/4.1.1
      /usr/libexec/gcc/x86_64-redhat-linux/4.1.1/cc1
      /usr/libexec/gcc/x86_64-redhat-linux/4.1.2 -> 4.1.1


      The fact that CC1 redirects to GCC on Wikipedia seems to imply something close to identity, however there's no other mention of CC1 on the GCC page besides the note about redirection, and Googling hasn't gotten me anything useful, and my attempts to use cc1 in place of gcc have failed.



      What exactly is the relationship between them? And does it offer me any hope of compiling Ruby on this machine?







      gcc






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 31 '13 at 22:45









      Gilles

      520k12510391569




      520k12510391569










      asked May 31 '13 at 14:17









      iconoclast

      3,72963668




      3,72963668




















          4 Answers
          4






          active

          oldest

          votes

















          up vote
          27
          down vote



          accepted










          GCC has a number of phases to its compilation, and it uses different internal commands to do each phase. C in particular is first preprocessed with cpp, then is compiled into assembly, assembled into machine language, and then linked together.



          cc1 is the internal command which takes preprocessed C-language files and converts them to assembly. It's the actual part that compiles C. For C++, there's cc1plus, and other internal commands for different languages.



          There is a book on Wikibooks that explains the process with pictures.



          Unfortunately, cc1 is an internal command and only one piece of the installation, and if that's all you have, you will not be able to compile things.






          share|improve this answer
















          • 1




            The usual term is "front end".
            – Keith Thompson
            May 31 '13 at 16:05

















          up vote
          9
          down vote













          gcc is the name of the suite cc is just the C compiler from this suite.



          the word cc it's also a generic name for any given c compiler under unix systems, for example it's not rare to find an environment variable called CC in a given building script or configure script, and if you want to be pedantic, this variable usually points to a c compiler that doesn't necessarily performs the linking of your compiled object, it's usually used to refer to a compiler that "just" compiles. cc from gcc is, however, able to output a finished executable so is able to perform this final step with its linker too.



          the word cc1 it's often times used "internally" or when reading GNU docs ( example ), it's also used to name gcc-related library based on what language or compiler they belong to ( in this case cc1 = belongs to the c compiler ).



          infact if you ask gcc what is the meaning of the word cc1



          gcc -print-prog-name=cc1


          it should answer with the path for the library for the cc compiler, so you are trying to execute something that is a library and not a real executable.



          it's much simpler to remember CC as c compiler and simplify everything, bypass this cc1, you don't need to know how things work internally unless you want to start a long journey.






          share|improve this answer



























            up vote
            2
            down vote













            As others mentioned, gcc uses cc1.



            The exact way in which cc1 and other sub-program like cpp and ld are called is done is determined by the spec files format.



            The current spec file can viewed with:



            gcc -dumpspecs


            The relevant section seems to be:



            *cc1_options:
            %pg:%fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible %!iplugindir*:%fplugin*:%:find-plugindir() %1 %!Q:-quiet %!dumpbase:-dumpbase %B %d* %m* %aux-info* %fcompare-debug-second:%:compare-debug-auxbase-opt(%b) %!fcompare-debug-second:%c%!c:%!S:-auxbase %b %g* %O* %W*&pedantic* %w %std*&ansi&trigraphs %v:-version %pg:-p %p %f* %undef %Qn:-fno-ident %Qy: %-help:--help %-target-help:--target-help %-version:--version %-help=*:--help=%* %!fsyntax-only:%S:%Wo*%!o*:-o %b.s %fsyntax-only:-o %j %-param* %coverage:-fprofile-arcs -ftest-coverage


            And you can use your own spec file with:



            gcc -specs=<specs-file>


            Of course, command line options passed to GCC indirectly change how the sub-processes are called. But manipulating spec files gives you greater flexibility and allows you to do things which command line options cannot, e.g. https://stackoverflow.com/questions/7493620/inhibit-default-library-paths-with-gcc



            You can observe what is being run easily with:



            gcc -v hello_world.c |& grep cc1


            Sample output:



            /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1 -quiet -v -imultiarch x86_64-linux-gnu hello_world.c -quiet -dumpbase hello_world.c -mtune=generic -march=x86-64 -auxbase hello_world -version -fstack-protector -Wformat -Wformat-security -o /tmp/ccvcVNAX.s





            share|improve this answer





























              up vote
              1
              down vote













              cc1 is both the preprocessor and the compiler, whose input is C source code and output is assembly code.



              You can see cc1 is one of the commands invoked (the first, in fact) by issuing (syntax dependent on version):
              gcc-8 -v SOMESOURCE.c






              share|improve this answer




















                Your Answer








                StackExchange.ready(function()
                var channelOptions =
                tags: "".split(" "),
                id: "106"
                ;
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function()
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled)
                StackExchange.using("snippets", function()
                createEditor();
                );

                else
                createEditor();

                );

                function createEditor()
                StackExchange.prepareEditor(
                heartbeatType: 'answer',
                convertImagesToLinks: false,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: null,
                bindNavPrevention: true,
                postfix: "",
                imageUploader:
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                ,
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                );



                );













                 

                draft saved


                draft discarded


















                StackExchange.ready(
                function ()
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f77779%2frelationship-between-cc1-and-gcc%23new-answer', 'question_page');

                );

                Post as a guest















                Required, but never shown

























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                27
                down vote



                accepted










                GCC has a number of phases to its compilation, and it uses different internal commands to do each phase. C in particular is first preprocessed with cpp, then is compiled into assembly, assembled into machine language, and then linked together.



                cc1 is the internal command which takes preprocessed C-language files and converts them to assembly. It's the actual part that compiles C. For C++, there's cc1plus, and other internal commands for different languages.



                There is a book on Wikibooks that explains the process with pictures.



                Unfortunately, cc1 is an internal command and only one piece of the installation, and if that's all you have, you will not be able to compile things.






                share|improve this answer
















                • 1




                  The usual term is "front end".
                  – Keith Thompson
                  May 31 '13 at 16:05














                up vote
                27
                down vote



                accepted










                GCC has a number of phases to its compilation, and it uses different internal commands to do each phase. C in particular is first preprocessed with cpp, then is compiled into assembly, assembled into machine language, and then linked together.



                cc1 is the internal command which takes preprocessed C-language files and converts them to assembly. It's the actual part that compiles C. For C++, there's cc1plus, and other internal commands for different languages.



                There is a book on Wikibooks that explains the process with pictures.



                Unfortunately, cc1 is an internal command and only one piece of the installation, and if that's all you have, you will not be able to compile things.






                share|improve this answer
















                • 1




                  The usual term is "front end".
                  – Keith Thompson
                  May 31 '13 at 16:05












                up vote
                27
                down vote



                accepted







                up vote
                27
                down vote



                accepted






                GCC has a number of phases to its compilation, and it uses different internal commands to do each phase. C in particular is first preprocessed with cpp, then is compiled into assembly, assembled into machine language, and then linked together.



                cc1 is the internal command which takes preprocessed C-language files and converts them to assembly. It's the actual part that compiles C. For C++, there's cc1plus, and other internal commands for different languages.



                There is a book on Wikibooks that explains the process with pictures.



                Unfortunately, cc1 is an internal command and only one piece of the installation, and if that's all you have, you will not be able to compile things.






                share|improve this answer












                GCC has a number of phases to its compilation, and it uses different internal commands to do each phase. C in particular is first preprocessed with cpp, then is compiled into assembly, assembled into machine language, and then linked together.



                cc1 is the internal command which takes preprocessed C-language files and converts them to assembly. It's the actual part that compiles C. For C++, there's cc1plus, and other internal commands for different languages.



                There is a book on Wikibooks that explains the process with pictures.



                Unfortunately, cc1 is an internal command and only one piece of the installation, and if that's all you have, you will not be able to compile things.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 31 '13 at 14:49









                Alan Shutko

                1,3911011




                1,3911011







                • 1




                  The usual term is "front end".
                  – Keith Thompson
                  May 31 '13 at 16:05












                • 1




                  The usual term is "front end".
                  – Keith Thompson
                  May 31 '13 at 16:05







                1




                1




                The usual term is "front end".
                – Keith Thompson
                May 31 '13 at 16:05




                The usual term is "front end".
                – Keith Thompson
                May 31 '13 at 16:05












                up vote
                9
                down vote













                gcc is the name of the suite cc is just the C compiler from this suite.



                the word cc it's also a generic name for any given c compiler under unix systems, for example it's not rare to find an environment variable called CC in a given building script or configure script, and if you want to be pedantic, this variable usually points to a c compiler that doesn't necessarily performs the linking of your compiled object, it's usually used to refer to a compiler that "just" compiles. cc from gcc is, however, able to output a finished executable so is able to perform this final step with its linker too.



                the word cc1 it's often times used "internally" or when reading GNU docs ( example ), it's also used to name gcc-related library based on what language or compiler they belong to ( in this case cc1 = belongs to the c compiler ).



                infact if you ask gcc what is the meaning of the word cc1



                gcc -print-prog-name=cc1


                it should answer with the path for the library for the cc compiler, so you are trying to execute something that is a library and not a real executable.



                it's much simpler to remember CC as c compiler and simplify everything, bypass this cc1, you don't need to know how things work internally unless you want to start a long journey.






                share|improve this answer
























                  up vote
                  9
                  down vote













                  gcc is the name of the suite cc is just the C compiler from this suite.



                  the word cc it's also a generic name for any given c compiler under unix systems, for example it's not rare to find an environment variable called CC in a given building script or configure script, and if you want to be pedantic, this variable usually points to a c compiler that doesn't necessarily performs the linking of your compiled object, it's usually used to refer to a compiler that "just" compiles. cc from gcc is, however, able to output a finished executable so is able to perform this final step with its linker too.



                  the word cc1 it's often times used "internally" or when reading GNU docs ( example ), it's also used to name gcc-related library based on what language or compiler they belong to ( in this case cc1 = belongs to the c compiler ).



                  infact if you ask gcc what is the meaning of the word cc1



                  gcc -print-prog-name=cc1


                  it should answer with the path for the library for the cc compiler, so you are trying to execute something that is a library and not a real executable.



                  it's much simpler to remember CC as c compiler and simplify everything, bypass this cc1, you don't need to know how things work internally unless you want to start a long journey.






                  share|improve this answer






















                    up vote
                    9
                    down vote










                    up vote
                    9
                    down vote









                    gcc is the name of the suite cc is just the C compiler from this suite.



                    the word cc it's also a generic name for any given c compiler under unix systems, for example it's not rare to find an environment variable called CC in a given building script or configure script, and if you want to be pedantic, this variable usually points to a c compiler that doesn't necessarily performs the linking of your compiled object, it's usually used to refer to a compiler that "just" compiles. cc from gcc is, however, able to output a finished executable so is able to perform this final step with its linker too.



                    the word cc1 it's often times used "internally" or when reading GNU docs ( example ), it's also used to name gcc-related library based on what language or compiler they belong to ( in this case cc1 = belongs to the c compiler ).



                    infact if you ask gcc what is the meaning of the word cc1



                    gcc -print-prog-name=cc1


                    it should answer with the path for the library for the cc compiler, so you are trying to execute something that is a library and not a real executable.



                    it's much simpler to remember CC as c compiler and simplify everything, bypass this cc1, you don't need to know how things work internally unless you want to start a long journey.






                    share|improve this answer












                    gcc is the name of the suite cc is just the C compiler from this suite.



                    the word cc it's also a generic name for any given c compiler under unix systems, for example it's not rare to find an environment variable called CC in a given building script or configure script, and if you want to be pedantic, this variable usually points to a c compiler that doesn't necessarily performs the linking of your compiled object, it's usually used to refer to a compiler that "just" compiles. cc from gcc is, however, able to output a finished executable so is able to perform this final step with its linker too.



                    the word cc1 it's often times used "internally" or when reading GNU docs ( example ), it's also used to name gcc-related library based on what language or compiler they belong to ( in this case cc1 = belongs to the c compiler ).



                    infact if you ask gcc what is the meaning of the word cc1



                    gcc -print-prog-name=cc1


                    it should answer with the path for the library for the cc compiler, so you are trying to execute something that is a library and not a real executable.



                    it's much simpler to remember CC as c compiler and simplify everything, bypass this cc1, you don't need to know how things work internally unless you want to start a long journey.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered May 31 '13 at 14:52









                    user2384250

                    30147




                    30147




















                        up vote
                        2
                        down vote













                        As others mentioned, gcc uses cc1.



                        The exact way in which cc1 and other sub-program like cpp and ld are called is done is determined by the spec files format.



                        The current spec file can viewed with:



                        gcc -dumpspecs


                        The relevant section seems to be:



                        *cc1_options:
                        %pg:%fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible %!iplugindir*:%fplugin*:%:find-plugindir() %1 %!Q:-quiet %!dumpbase:-dumpbase %B %d* %m* %aux-info* %fcompare-debug-second:%:compare-debug-auxbase-opt(%b) %!fcompare-debug-second:%c%!c:%!S:-auxbase %b %g* %O* %W*&pedantic* %w %std*&ansi&trigraphs %v:-version %pg:-p %p %f* %undef %Qn:-fno-ident %Qy: %-help:--help %-target-help:--target-help %-version:--version %-help=*:--help=%* %!fsyntax-only:%S:%Wo*%!o*:-o %b.s %fsyntax-only:-o %j %-param* %coverage:-fprofile-arcs -ftest-coverage


                        And you can use your own spec file with:



                        gcc -specs=<specs-file>


                        Of course, command line options passed to GCC indirectly change how the sub-processes are called. But manipulating spec files gives you greater flexibility and allows you to do things which command line options cannot, e.g. https://stackoverflow.com/questions/7493620/inhibit-default-library-paths-with-gcc



                        You can observe what is being run easily with:



                        gcc -v hello_world.c |& grep cc1


                        Sample output:



                        /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1 -quiet -v -imultiarch x86_64-linux-gnu hello_world.c -quiet -dumpbase hello_world.c -mtune=generic -march=x86-64 -auxbase hello_world -version -fstack-protector -Wformat -Wformat-security -o /tmp/ccvcVNAX.s





                        share|improve this answer


























                          up vote
                          2
                          down vote













                          As others mentioned, gcc uses cc1.



                          The exact way in which cc1 and other sub-program like cpp and ld are called is done is determined by the spec files format.



                          The current spec file can viewed with:



                          gcc -dumpspecs


                          The relevant section seems to be:



                          *cc1_options:
                          %pg:%fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible %!iplugindir*:%fplugin*:%:find-plugindir() %1 %!Q:-quiet %!dumpbase:-dumpbase %B %d* %m* %aux-info* %fcompare-debug-second:%:compare-debug-auxbase-opt(%b) %!fcompare-debug-second:%c%!c:%!S:-auxbase %b %g* %O* %W*&pedantic* %w %std*&ansi&trigraphs %v:-version %pg:-p %p %f* %undef %Qn:-fno-ident %Qy: %-help:--help %-target-help:--target-help %-version:--version %-help=*:--help=%* %!fsyntax-only:%S:%Wo*%!o*:-o %b.s %fsyntax-only:-o %j %-param* %coverage:-fprofile-arcs -ftest-coverage


                          And you can use your own spec file with:



                          gcc -specs=<specs-file>


                          Of course, command line options passed to GCC indirectly change how the sub-processes are called. But manipulating spec files gives you greater flexibility and allows you to do things which command line options cannot, e.g. https://stackoverflow.com/questions/7493620/inhibit-default-library-paths-with-gcc



                          You can observe what is being run easily with:



                          gcc -v hello_world.c |& grep cc1


                          Sample output:



                          /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1 -quiet -v -imultiarch x86_64-linux-gnu hello_world.c -quiet -dumpbase hello_world.c -mtune=generic -march=x86-64 -auxbase hello_world -version -fstack-protector -Wformat -Wformat-security -o /tmp/ccvcVNAX.s





                          share|improve this answer
























                            up vote
                            2
                            down vote










                            up vote
                            2
                            down vote









                            As others mentioned, gcc uses cc1.



                            The exact way in which cc1 and other sub-program like cpp and ld are called is done is determined by the spec files format.



                            The current spec file can viewed with:



                            gcc -dumpspecs


                            The relevant section seems to be:



                            *cc1_options:
                            %pg:%fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible %!iplugindir*:%fplugin*:%:find-plugindir() %1 %!Q:-quiet %!dumpbase:-dumpbase %B %d* %m* %aux-info* %fcompare-debug-second:%:compare-debug-auxbase-opt(%b) %!fcompare-debug-second:%c%!c:%!S:-auxbase %b %g* %O* %W*&pedantic* %w %std*&ansi&trigraphs %v:-version %pg:-p %p %f* %undef %Qn:-fno-ident %Qy: %-help:--help %-target-help:--target-help %-version:--version %-help=*:--help=%* %!fsyntax-only:%S:%Wo*%!o*:-o %b.s %fsyntax-only:-o %j %-param* %coverage:-fprofile-arcs -ftest-coverage


                            And you can use your own spec file with:



                            gcc -specs=<specs-file>


                            Of course, command line options passed to GCC indirectly change how the sub-processes are called. But manipulating spec files gives you greater flexibility and allows you to do things which command line options cannot, e.g. https://stackoverflow.com/questions/7493620/inhibit-default-library-paths-with-gcc



                            You can observe what is being run easily with:



                            gcc -v hello_world.c |& grep cc1


                            Sample output:



                            /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1 -quiet -v -imultiarch x86_64-linux-gnu hello_world.c -quiet -dumpbase hello_world.c -mtune=generic -march=x86-64 -auxbase hello_world -version -fstack-protector -Wformat -Wformat-security -o /tmp/ccvcVNAX.s





                            share|improve this answer














                            As others mentioned, gcc uses cc1.



                            The exact way in which cc1 and other sub-program like cpp and ld are called is done is determined by the spec files format.



                            The current spec file can viewed with:



                            gcc -dumpspecs


                            The relevant section seems to be:



                            *cc1_options:
                            %pg:%fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible %!iplugindir*:%fplugin*:%:find-plugindir() %1 %!Q:-quiet %!dumpbase:-dumpbase %B %d* %m* %aux-info* %fcompare-debug-second:%:compare-debug-auxbase-opt(%b) %!fcompare-debug-second:%c%!c:%!S:-auxbase %b %g* %O* %W*&pedantic* %w %std*&ansi&trigraphs %v:-version %pg:-p %p %f* %undef %Qn:-fno-ident %Qy: %-help:--help %-target-help:--target-help %-version:--version %-help=*:--help=%* %!fsyntax-only:%S:%Wo*%!o*:-o %b.s %fsyntax-only:-o %j %-param* %coverage:-fprofile-arcs -ftest-coverage


                            And you can use your own spec file with:



                            gcc -specs=<specs-file>


                            Of course, command line options passed to GCC indirectly change how the sub-processes are called. But manipulating spec files gives you greater flexibility and allows you to do things which command line options cannot, e.g. https://stackoverflow.com/questions/7493620/inhibit-default-library-paths-with-gcc



                            You can observe what is being run easily with:



                            gcc -v hello_world.c |& grep cc1


                            Sample output:



                            /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1 -quiet -v -imultiarch x86_64-linux-gnu hello_world.c -quiet -dumpbase hello_world.c -mtune=generic -march=x86-64 -auxbase hello_world -version -fstack-protector -Wformat -Wformat-security -o /tmp/ccvcVNAX.s






                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited May 23 '17 at 12:40









                            Community

                            1




                            1










                            answered May 15 '15 at 8:48









                            Ciro Santilli 新疆改造中心 六四事件 法轮功

                            4,64824038




                            4,64824038




















                                up vote
                                1
                                down vote













                                cc1 is both the preprocessor and the compiler, whose input is C source code and output is assembly code.



                                You can see cc1 is one of the commands invoked (the first, in fact) by issuing (syntax dependent on version):
                                gcc-8 -v SOMESOURCE.c






                                share|improve this answer
























                                  up vote
                                  1
                                  down vote













                                  cc1 is both the preprocessor and the compiler, whose input is C source code and output is assembly code.



                                  You can see cc1 is one of the commands invoked (the first, in fact) by issuing (syntax dependent on version):
                                  gcc-8 -v SOMESOURCE.c






                                  share|improve this answer






















                                    up vote
                                    1
                                    down vote










                                    up vote
                                    1
                                    down vote









                                    cc1 is both the preprocessor and the compiler, whose input is C source code and output is assembly code.



                                    You can see cc1 is one of the commands invoked (the first, in fact) by issuing (syntax dependent on version):
                                    gcc-8 -v SOMESOURCE.c






                                    share|improve this answer












                                    cc1 is both the preprocessor and the compiler, whose input is C source code and output is assembly code.



                                    You can see cc1 is one of the commands invoked (the first, in fact) by issuing (syntax dependent on version):
                                    gcc-8 -v SOMESOURCE.c







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered 2 days ago









                                    flow2k

                                    18311




                                    18311



























                                         

                                        draft saved


                                        draft discarded















































                                         


                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function ()
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f77779%2frelationship-between-cc1-and-gcc%23new-answer', 'question_page');

                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown






                                        Popular posts from this blog

                                        How to check contact read email or not when send email to Individual?

                                        Bahrain

                                        Postfix configuration issue with fips on centos 7; mailgun relay