Announcement

Collapse
No announcement yet.

A GCC Proposal To Build It Better, Faster

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • A GCC Proposal To Build It Better, Faster

    Phoronix: A GCC Proposal To Build It Better, Faster

    There's a proposal within the GCC development camp to change the CFLAGS under which the GNU Compiler Collection is built when in a release mode...

    http://www.phoronix.com/vr.php?view=MTEzOTA

  • #2
    What if you compile GCC with LLVM and LLVM with GCC lol.

    And compile GCC with GCC.
    And LLVM with LLVM.

    Comment


    • #3
      Originally posted by uid313 View Post
      What if you compile GCC with LLVM and LLVM with GCC lol.

      And compile GCC with GCC.
      And LLVM with LLVM.
      And test programs compiled with the compilers that were created to show code size and general program performance comparisons. Maybe there are indeed differences when a compiler is built using another compiler

      Aside: would be interesting to see how gcc would behave if built with LLVM instead



      Michael, what do you think?

      Comment


      • #4
        Compilers are deterministic

        Originally posted by DeepDayze View Post
        And test programs compiled with the compilers that were created to show code size and general program performance comparisons. Maybe there are indeed differences when a compiler is built using another compiler

        Aside: would be interesting to see how gcc would behave if built with LLVM instead



        Michael, what do you think?
        If the compilers generate different outputs depending on what compiler they were compiled with, that sounds like a bug. That'd be like a spreadsheet producing different answers depending on what compiler the application was built with.

        Comment


        • #5
          But will they also build it harder and stronger?

          Comment


          • #6
            What's the point of it?

            No one builds GCC using its default CFLAGS/CXXFLAGS.

            Comment


            • #7
              Originally posted by birdie View Post
              What's the point of it?

              No one builds GCC using its default CFLAGS/CXXFLAGS.
              Putting -O3, LTO and PGO in defaults will probably result in distros also using them, even if they customize a lot. Especially PGO could improve things a bit.

              Comment


              • #8
                "make profiledbuild" has been an option for ages.

                Comment

                Working...
                X