From 02b433e3ee8edb129c1e286a37ed2c8a8170fefe Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Tue, 17 Apr 2018 13:11:18 +0100 Subject: [PATCH] readme: move compiler optimization section under Buildroot --- README.adoc | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/README.adoc b/README.adoc index 0bf4f8f..1e389df 100644 --- a/README.adoc +++ b/README.adoc @@ -3629,26 +3629,6 @@ TODO: why doesn't this exist: ls /sys/devices/system/cpu/cpu0/cpufreq .... -==== Enable compiler optimizations - -If you are benchmarking compiled programs instead of hand written assembly, remember that we configure Buildroot to disable optimizations by default with: - -.... -BR2_OPTIMIZE_0=y -.... - -to improve the debugging experience. - -You will likely want to change that to: - -.... -BR2_OPTIMIZE_3=y -.... - -and do a full rebuild. - -TODO is it possible to compile a single package with optimizations enabled? In any case, this wouldn't be very representative, since calls to an unoptimized libc will also have an impact on performance. Kernel-wise it should be fine though, since the kernel requires `O=2`. - ==== Interesting benchmarks Buildroot built-in libraries, mostly under Libraries > Other: @@ -4542,6 +4522,26 @@ We provide the following mechanisms: You will then likely want to make those more permanent with: <> +==== Enable compiler optimizations + +If you are benchmarking compiled programs instead of hand written assembly, remember that we configure Buildroot to disable optimizations by default with: + +.... +BR2_OPTIMIZE_0=y +.... + +to improve the debugging experience. + +You will likely want to change that to: + +.... +BR2_OPTIMIZE_3=y +.... + +and do a full rebuild. + +TODO is it possible to compile a single package with optimizations enabled? In any case, this wouldn't be very representative, since calls to an unoptimized libc will also have an impact on performance. Kernel-wise it should be fine though due to: <> + === Find Buildroot options with make menuconfig `make menuconfig` is a convenient way to find Buildroot configurations: