This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/MSP432P401R: --float_support=none option does not work

Part Number: MSP432P401R

Tool/software: TI C/C++ Compiler

Although MSP432 contains M4F, I am trying to generate code as if it were M4 so compiling code with CCS project option setting of float_support=none. But when the C source has float operations, the compiler does not honor the option and generates floating point instructions.

Following command line printed in CCS console [which shows compiler version, only relevant options are shown and there was no recurrence of float_support with non-none option again in the command line that has been suppressed]:

C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=none -me -O3 --opt_for_speed=4 ...

But generated asm shows option reverts to one of the floating point options and float instructions are present [instead of float emulation] and have confirmed in disassembly window of the function after loading the executable:

;******************************************************************************
;* TI ARM G3 C/C++ Codegen PC v18.12.2.LTS *
;* Date/Time created: Fri Jun 21 16:24:34 2019 *
;******************************************************************************
.compiler_opts --abi=eabi --arm_vmrs_si_workaround=off --code_state=16 --diag_wrap=off --embedded_constants=on --endian=little --float_support=FPv4SPD16 --hll_source=on --object_format=elf --silicon_version=7M4 --symdebug:dwarf --symdebug:dwarf_version=3 --unaligned_access=on
.thumb