GCC Preparing To Set C23 "GNU23" As Default C Language Version

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • phoronix
    Administrator
    • Jan 2007
    • 67113

    GCC Preparing To Set C23 "GNU23" As Default C Language Version

    Phoronix: GCC Preparing To Set C23 "GNU23" As Default C Language Version

    The GNU Compiler Collection (GCC) support for the C23 programming language standard is now considered "essentially feature-complete" with GCC 15. As such they are preparing to enable the C23 language version (using the GNU23 dialect) by default for the C language version of GCC when not otherwise specified...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite
  • geerge
    Senior Member
    • Aug 2023
    • 331

    #2
    Maybe before I die it'll be common to use #embed in the wild.

    Comment

    • kylew77
      Senior Member
      • Jul 2017
      • 1129

      #3
      Originally posted by geerge View Post
      Maybe before I die it'll be common to use #embed in the wild.
      I did the following google search, What does "#embeded" do in C programing
      and it returned nothing germane to this preprocessor directive. What does it do if you don't mind me asking?

      Comment

      • xnor
        Senior Member
        • Jun 2013
        • 160

        #4
        Originally posted by kylew77 View Post

        I did the following google search, What does "#embeded" do in C programing
        and it returned nothing germane to this preprocessor directive. What does it do if you don't mind me asking?
        People need to learn how to use Google again.
        Third search result: https://en.cppreference.com/w/c/preprocessor/embed

        Comment

        • Setif
          Senior Member
          • Feb 2016
          • 301

          #5
          Meanwhile, Linux kernel still stuck with C89.

          Comment

          • carewolf
            Senior Member
            • Nov 2012
            • 2255

            #6
            Please don't. I waste so much time removing c23'isms already

            Comment

            • Jaxad0127
              Senior Member
              • Oct 2018
              • 217

              #7
              Originally posted by Setif View Post
              Meanwhile, Linux kernel still stuck with C89.
              They moved to C11 over two years ago for version 5.18. https://www.phoronix.com/news/Linux-Kernel-C89-To-C11

              Comment

              • geerge
                Senior Member
                • Aug 2023
                • 331

                #8
                Originally posted by carewolf View Post
                Please don't. I waste so much time removing c23'isms already
                For embed it's that or either xxd (small files only), per-architecture assembly, or per-compiler linker settings.

                Comment

                • Setif
                  Senior Member
                  • Feb 2016
                  • 301

                  #9
                  Originally posted by Jaxad0127 View Post

                  They moved to C11 over two years ago for version 5.18. https://www.phoronix.com/news/Linux-Kernel-C89-To-C11
                  They allow not require, there is a big difference.

                  Comment

                  • Jaxad0127
                    Senior Member
                    • Oct 2018
                    • 217

                    #10
                    Originally posted by Setif View Post

                    They allow not require, there is a big difference.
                    This clearly says C11: https://www.kernel.org/doc/html/late...-language.html
                    This says GCC 5.1 minimum: https://www.kernel.org/doc/html/late...s/changes.html
                    GCC 5.1 was when C11 was considered complete and suitable as the default. The kernel does not support compiling less than C11. You'll need to provide references saying otherwise.

                    Comment

                    Working...
                    X