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

• --strict, --no_strict on page 2-119<br />

• Source language modes on page 1-3.<br />

2.1.22 --code_gen, --no_code_gen<br />

This option enables or disables the generation of object code.<br />

When generation of object code is disabled, the compiler performs syntax-checking<br />

only, without creating an object file.<br />

Default<br />

The default is --code_gen.<br />

2.1.23 --compatible=name<br />

This option enables code generated by the compiler to be compatible with multiple<br />

processors or architectures.<br />

The valid combinations are shown in Table 2-2. You can match any of the processors or<br />

architectures from Group 1 with any of the processors or architectures from Group 2.<br />

Table 2-2 Compatible processor or architecture combinations<br />

Group 1<br />

Group 2<br />

<strong>ARM</strong>7TDMI, 4T<br />

Cortex-M0, Cortex-M1, Cortex-M3, Cortex-M4, 7-M,<br />

6-M, 6S-M<br />

Syntax<br />

--compatible=name<br />

Where:<br />

name<br />

is the name of a processor or architecture, or NONE. Processor and<br />

architecture names are not case-sensitive.<br />

If multiple instances of this option are present on the command line, the<br />

last one specified overrides the previous instances.<br />

Specify --compatible=NONE at the end of the command line to turn off all<br />

other instances of the option.<br />

Example<br />

armcc --cpu=arm7tdmi --compatible=cortex-m3 myprog.c<br />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!