1# SPDX-License-Identifier: BSD-3-Clause 2 3comment "XTOS options / compiler" 4 5choice 6 prompt "Optimization" 7 default OPTIMIZE_FOR_PERFORMANCE 8 help 9 Controls how compiler should optimize binary. 10 This config should affect only compiler settings and is 11 not meant to be used for conditional compilation of code. 12 13config OPTIMIZE_FOR_PERFORMANCE 14 bool "Optimize for performance" 15 help 16 Apply compiler optimizations prioritizing performance. 17 It means -O2 for GCC or equivalent for other compilers. 18 19config OPTIMIZE_FOR_SIZE 20 bool "Optimize for size" 21 help 22 Apply compiler optimizations prioritizing binary size. 23 It means -Os for GCC or equivalent for other compilers. 24 25config OPTIMIZE_FOR_DEBUG 26 bool "Optimize for debug" 27 help 28 Apply compiler optimizations prioritizing debugging experience. 29 It means -Og for GCC or equivalent for other compilers. 30 31config OPTIMIZE_FOR_NONE 32 bool "Don't optimize" 33 help 34 Apply no compiler optimizations. 35 It means -O0 for GCC or equivalent for other compilers. 36 37endchoice 38 39config BUILD_VM_ROM 40 bool "Build VM ROM" 41 default n 42 help 43 Select if you want to build VM ROM 44