1# SPDX-License-Identifier: Apache-2.0 2 3if(COMPILER STREQUAL gcc) 4 # GNU compiler options 5 zephyr_compile_options(-mcpu=${GCC_M_CPU}) 6 7 # ISA_ARCV2 & 32BIT 8 zephyr_compile_options(-mno-sdata) 9 zephyr_compile_options_ifdef(CONFIG_FPU -mfpu=fpuda_all) 10 11else() 12 # MWDT compiler options 13 14 zephyr_compile_options_ifdef(CONFIG_SOC_NSIM_SEM -arcv2em -core3 -Xcode_density 15 -Xdiv_rem=radix2 -Xswap -Xbitscan -Xmpy_option=mpyd 16 -Xshift_assist -Xbarrel_shifter -Xdsp2 17 -Xdsp_complex -Xdsp_divsqrt=radix2 18 -Xdsp_accshift=limited -Xtimer0 -Xtimer1 19 -Xsec_timer0 -Xstack_check -Xsec_modes -Xdmac) 20 21endif() 22