Creating a Simple Application with the tiarmclang Compiler Tools

This section of the Getting Started Guide provides an example of how to build a simple application using the tiarmclang command-line interface. In addition, it provides a walk-through of how to build a simple application in a Code Composer Studio project that uses the tiarmclang compiler.

Source Files

The subsections below will describe how to build a simple “Hello World!” program using either the tiarmclang command-line interface or the Code Composer Studio (CCS) development environment. For the purposes of these tutorial examples, it is assumed that you have a C source file containing the following C code:

1
2
3
4
5
6
#include <stdio.h>

int main() {
  printf("Hello World\n");
  return 0;
}

It is also assumed that you have at your disposal a linker command file that provides a specification of the available memory and how to place compiler/linker generated output sections in that memory. For example, in the tutorials below, the following linker command file, named “linkme.cmd”, could be used:

../../../_images/lnkme_cmd_image.png