04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Compiler Command-line Options<br />

Example 2-1 Bit-banding example<br />

typedef struct {<br />

int i : 1;<br />

int j : 2;<br />

int k : 1;<br />

} BB;<br />

BB value;<br />

void update_value(void)<br />

{<br />

value.i = 1;<br />

value.k = 1;<br />

}<br />

See also<br />

• __attribute__((bitband)) on page 4-43<br />

• Bit-banding on page 4-16 in the Compiler User Guide<br />

• Technical Reference Manual for your processor.<br />

2.1.16 --brief_diagnostics, --no_brief_diagnostics<br />

This option enables or disables the output of brief diagnostic messages by the compiler.<br />

When enabled, the original source line is not displayed, and error message text is not<br />

wrapped if it is too long to fit on a single line.<br />

Default<br />

The default is --no_brief_diagnostics.<br />

Example<br />

/* main.c */<br />

#include <br />

int main(void)<br />

{<br />

printf("“Hello, world\n");<br />

return 0;<br />

}<br />

Compiling this code with --brief_diagnostics produces a warning message.<br />

<strong>ARM</strong> DUI 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. 2-19<br />

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!