This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

-O3 & -Os

Hi,

I'm using ARM Clang compiler version 6.16, and I want to know what happens if I give both the compiler options (-O3 -Os) for building the source code ?

Which one will take into effect, will it be same as building with -Os or will it do some optimization because of specifying -O3 aslo ? 

Please clarify. 

$ armclang --target=arm-arm-none-eabi -mcpu=cortex-m7 -Wall -Wextra -Werror -Wno-error=unused-variable -Wno-error=unused-parameter -fdiagnostics-absolute-paths -Wno-unused-command-line-argument -Wno-error=unused-private-field -mno-unaligned-access -fno-builtin -c -O3 -Os -o main.o main.c

Parents Reply Children
No data