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
If multiple -O options are specified, only the latter most is used. They do not combine together.