29.10.2014 Views

ARM Compiler toolchain v4.1 for µVision Using the Compiler

ARM Compiler toolchain v4.1 for µVision Using the Compiler

ARM Compiler toolchain v4.1 for µVision Using the Compiler

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>Compiler</strong> Coding Practices<br />

5.69 long long data type in C99 and C90<br />

C99 supports <strong>the</strong> integral data type long long. This type is 64 bits wide in <strong>the</strong> <strong>ARM</strong> compilation<br />

tools. For example:<br />

long long int j = 25902068371200;<br />

// length of light day, meters<br />

unsigned long long int i = 94607304725808000ULL; // length of light year, meters<br />

long long is also available in C90 when not using --strict.<br />

__int64 is a synonym <strong>for</strong> long long. __int64 is always available.<br />

5.69.1 See also<br />

Concepts<br />

• New language features of C99 on page 5-77.<br />

Reference<br />

<strong>Compiler</strong> Reference:<br />

• long long on page 4-6.<br />

<strong>ARM</strong> DUI 0375C Copyright © 2007-2008, 2011 <strong>ARM</strong>. All rights reserved. 5-87<br />

ID061811<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!