mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 23:19:42 -06:00
This adds the ability to use TI's C2000 compiler with basic directive filtering and assembly code parsing.
31 lines
1.2 KiB
Markdown
31 lines
1.2 KiB
Markdown
# Running TI-C2000 compiler
|
|
|
|
This document is a very basic explanation of how to get the TI-C2000 compiler working with Compiler Explorer.
|
|
|
|
# Prerequisites
|
|
|
|
To run the TI-C2000 compiler you will need a valid installation of the C2000 compiler. https://www.ti.com/tool/C2000-CGT
|
|
|
|
## Setting up c++.local.properties
|
|
|
|
The next step is to create a `c++.local.properties` file under `etc/config` folder. It is going to be different for
|
|
everyone, as you can choose what compiler options you pass to the compiler. Below is the template that I used for the
|
|
22.6.0.LTS version of the compiler. Modify it as necessary for your needs.
|
|
|
|
```
|
|
compilers=&c2000
|
|
# TI-C2000 Compilers
|
|
group.c2000.compilers=c2k2260LTS
|
|
group.c2000.versionFlag=-version
|
|
group.c2000.supportsBinary=false
|
|
group.c2000.intelAsm=
|
|
group.c2000.compilerType=tic2000
|
|
group.c2000.demangler=C:\ti\ccs1210\ccs\tools\compiler\ti-cgt-c2000_22.6.0.LTS\bin\dem2000.exe
|
|
group.c2000.demanglerType=tic2000
|
|
group.c2000.includeFlag=-I
|
|
|
|
compiler.c2k2260LTS.exe=C:\ti\ccs1210\ccs\tools\compiler\ti-cgt-c2000_22.6.0.LTS\bin\cl2000.exe
|
|
compiler.c2k2260LTS.options=-I"C:\ti\ccs1210\ccs\tools\compiler\ti-cgt-c2000_22.6.0.LTS\include"
|
|
compiler.c2k2260LTS.name=C2000 22.6.0.LTS
|
|
```
|