|
clang 24.0.0git
|
-msp430-def More...
-msp430-def
Script to generate MSP430 definitions from TI's devices.csv Download the devices.csv from [1] using the link "Header and Support Files". CPUS and MULTIPLIERS map the numeric CPU_TYPE and MPY_TYPE codes of the CSV to the CPU and hwmult names used by clang. The codes are defined in the legend at the top of devices.csv: CPU_TYPE: 0: MSP430 CPU 1: MSP430X CPU 2: MSP430XV2 CPU MPY_TYPE: 0: No hardware multiplier 1: 16 bit hardware multiplier 2: 16 bit hardware multiplier with sign extension (2xx devices) 4: 32 bit hardware multiplier 8: 32 bit hardware multiplier (5xx devices) Code 2 maps to "16bit" because there is no separate hwmult option for it. Code 8 maps to "f5series" because the 5xx/6xx multiplier uses different register addresses than the other 32 bit multiplier. [1]: https://www.ti.com/tool/MSP430-GCC-OPENSOURCE#downloads