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

• a specific ZI data section, use a combination of __attribute__((section)) and<br />

__attribute__((zero_init)).<br />

Default<br />

If you do not specify a --bss_threshold option, the compiler assumes<br />

--bss_threshold=8.<br />

If you specify an <strong>ARM</strong> Linux configuration file on the command line and you use<br />

--translate_gcc or --translate_g++, the compiler assumes --bss_threshold=0.<br />

Example<br />

int glob1; /* ZI (.bss) in RVCT 2.0.1 and earlier */<br />

/* RW (.data) in RVCT 2.1 and later */<br />

Compiling this code with --bss_threshold=0 places glob1 in a ZI data section.<br />

See also<br />

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

• --arm_linux_config_file=path on page 2-10<br />

• --arm_linux_configure on page 2-12<br />

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

• __attribute__((zero_init)) on page 4-57.<br />

2.1.18 -c<br />

This option instructs the compiler to perform the compilation step, but not the link step.<br />

Note<br />

This option is different from the uppercase -C option.<br />

Usage<br />

The use of the -c option is recommended in projects with more than one source file.<br />

See also<br />

• --asm on page 2-16<br />

• --list on page 2-82<br />

• -o filename on page 2-95<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!