Base-Toolchain: optimize option O2 -> Os 14/304514/2
authorDongkyun Son <dongkyun.s@samsung.com>
Thu, 18 Jan 2024 08:02:38 +0000 (17:02 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Mon, 29 Jan 2024 05:20:02 +0000 (05:20 +0000)
commita6a0528a24a3a415278328c4b19f69ae226fb756
tree620f33f0bba3a0a822ebe39ca5f279886630b38b
parent7ac74461b505ce7fd8ba470975618bdc4ce70bc9
Base-Toolchain: optimize option O2 -> Os

Binary size and performance need to be evaluated with the change.

-Os
Optimize for size. -Os enables all -O2 optimizations except those that
often increase code size:

-falign-functions  -falign-jumps
-falign-labels  -falign-loops
-fprefetch-loop-arrays  -freorder-blocks-algorithm=stc

It also enables -finline-functions, causes the compiler to tune for code
size rather than execution speed, and performs further optimizations
designed to reduce code size.

Change-Id: I5d7d0ebfa3f0d311439e0b67aa3def8e02fc52c6
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
TIZEN/Tizen/Tizen-Base-Toolchain/project_config