Tool/software: TI C/C++ Compiler
I have tried compiling my current in-house Firmware for the MSP432 which builds fine with gcc & clang with TI's armcl compiler. Unfortunately the compiler segfaults when compiling the "main" file which requires instantiating a lot of templates and also evaluate a lot of macros.
The compiler is invoked via:
ti/ti-cgt-arm_17.9.0.STS/bin/armcl -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --advice:power=all -g --gcc --define=TARGET_IS_MSP432P4XX --define=ccs --display_error_number --diag_warning=225 --diag_wrap=off --abi=eabi --preproc_with_compile -Iinclude/support_files/CMSIS -Iinclude/support_files -Iti/ti-cgt-arm_17.9.0.STS/include -Iinclude/driverlib/MSP432P4xx -I. devices/FT800_display/main.cpp --output_file=build/FT800_display/main.obj
where the various includes are for driverlib & cmsis headers and "devices/FT800_display/main.cpp" is the C++ main file. I unfortunately cannot share the .pp file publicly that the compiler produces when invoked with --preproc_with_comment as it contains our internal source code.
I suspect that the long lines created by looped macros could be the problem (I have several lines with more than 1000 characters, one of them has even 17k).