readme: move compiler optimization section under Buildroot

This commit is contained in:
Ciro Santilli
2018-04-17 13:11:18 +01:00
parent 383e1c3120
commit 02b433e3ee

View File

@@ -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: <<retype>>
==== 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: <<kernel-o0>>
=== Find Buildroot options with make menuconfig
`make menuconfig` is a convenient way to find Buildroot configurations: