12.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 1. C LanguageThis chapter describes the target specific features of the C language, including language extensions thatare not standard in ISO-C. For example, pragmas are a way to control the compiler from within the Csource.The <strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> ® C compiler fully supports the ISO-C standard and adds extrapossibilities to program the special functions of the target.In addition to the standard C language, the compiler supports the following:• attribute to specify alignment and absolute addresses• intrinsic (built-in) functions that result in target specific assembly instructions• pragmas to control the compiler from within the C source• predefined macros• the possibility to use assembly instructions in the C source• keywords <strong>for</strong> inlining functions and programming interrupt routines• librariesAll non-standard keywords have two leading underscores (__).In this chapter the target specific characteristics of the C language are described, including the abovementioned extensions.1.1. Data TypesThe <strong>TASKING</strong> C compiler <strong>for</strong> the <strong>ARM</strong> supports the following data types.C TypeSizeAlignLimits_Bool180 or 1signed char88[-2 7 , 2 7 -1]unsigned char88[0, 2 8 -1]short1616[-2 15 , 2 15 -1]unsigned short1616[0, 2 16 -1]int3232[-2 31 , 2 31 -1]unsigned int3232[0, 2 32 -1]enum3232[-2 31 , 2 31 -1]long3232[-2 31 , 2 31 -1]unsigned long3232[0, 2 32 -1]long long6464[-2 63 , 2 63 -1]1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!