Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: "Richard Stallman Announces C Reference" Date: Mon, 19 Sep 2022 12:27:43 -0700 Organization: None to speak of Lines: 27 Message-ID: <87o7vbf9lc.fsf@nosuchdomain.example.com> References: <088ac17f-3651-4dbf-b4c0-96fb7bec2efbn@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="95571737db6c7093ad7a5dac0318b38c"; logging-data="1299325"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18g4J7/HcdXUXncHPoO2KgQ" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:LjucS05LlMnuAIGX+436d9lU74U= sha1:9Kd0MRPeEiRrLF9NXhcHAwdB4GY= Xref: csiph.com comp.lang.c++:86426 Juha Nieminen writes: > David Brown wrote: >> (as well as being modernised to include >> C11, now that it is the standard for the kernel). > > Speaking of which, I find it a bit surprising that there seems to be no > official rule, directive or even recommendation on which version of C > can/should be used in kernel code. Or at least I can't find this anywhere > (I have tried). > > The only thing I have found is some directive/rule that the kernel has > to compile with gcc 3.3, but AFAIK even that rule is old and obsolete > (and the current kernel might not compile with that version of gcc > anymore.) https://www.kernel.org/doc/html/latest/process/programming-language.html The kernel is written in the C programming language [c-language]. More precisely, the kernel is typically compiled with gcc [gcc] under -std=gnu11 [gcc-c-dialect-options]: the GNU dialect of ISO C11. clang [clang] is also supported, see docs on Building Linux with Clang/LLVM. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */