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 />

Restrictions<br />

This option reduces the potential for sharing addresses, data, and string literals between<br />

functions. Consequently, it might increase code size slightly for some functions.<br />

Example<br />

int f(int x)<br />

{<br />

return x+1;<br />

}<br />

Compiling this code with --split_sections produces:<br />

f PROC<br />

AREA ||i.f||, CODE, READONLY, ALIGN=2<br />

ADD r0,r0,#1<br />

BX lr<br />

ENDP<br />

See also<br />

• --data_reorder, --no_data_reorder on page 2-36<br />

• --feedback=filename on page 2-56<br />

• --multifile, --no_multifile on page 2-92<br />

• __attribute__((section("name"))) on page 4-38<br />

• #pragma arm section [section_sort_list] on page 4-59<br />

• Using linker feedback on page 2-26 in the Compiler User Guide.<br />

2.1.152 --strict, --no_strict<br />

This option enforces or relaxes strict C or strict C++, depending on the choice of source<br />

language used.<br />

When --strict is selected:<br />

• features that conflict with ISO C or ISO C++ are disabled<br />

• error messages are returned when nonstandard features are used.<br />

Default<br />

The default is --no_strict.<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!