Sujet : Re: Fine. (was: Re: C Non-Programming Non-Challenge)
De : vallor (at) *nospam* cultnix.org (vallor)
Groupes : comp.os.linux.advocacyDate : 18. Jun 2024, 23:55:47
Autres entêtes
Message-ID : <ldee32F93giU1@mid.individual.net>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Pan/0.159 (Vovchansk; 873418b; Linux-6.9.5)
On Mon, 17 Jun 2024 22:44:05 +0000, Farley Flud <
ff@linux.rocks> wrote in
<
17d9ec069a174a11$93819$3210899$802601b3@news.usenetexpress.com>:
On 17 Jun 2024 22:14:24 GMT, vallor wrote:
What I would like to do is someday figure out how to build with
-march=native . Haven't bothered yet, because my machine is already
plenty fast.
I don't think that it is possible to pass custom CFLAGS to the kernel
build.
Whatever, Sport.
$ rcsdiff -u Makefile
===================================================================
RCS file: RCS/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile 2024/06/16 11:51:16 1.1
+++ Makefile 2024/06/17 23:36:50
@@ -808,7 +808,7 @@
KBUILD_CFLAGS += -fno-delete-null-pointer-checks
ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
-KBUILD_CFLAGS += -O2
+KBUILD_CFLAGS += -O3 -march=native
KBUILD_RUSTFLAGS += -Copt-level=2
else ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os
-- -v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti OS: Linux 6.9.5tweaked Release: Mint 21.3 Mem: 258G "Hors d'oeuvres--a ham sandwich cut into forty pieces."