29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

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>-specific Features<br />

Where:<br />

smc_num<br />

Is a 16-bit immediate value used in the SMC instruction.<br />

The value of smc_num is ignored by the <strong>ARM</strong> processor, but can be<br />

used by the SMC exception handler to determine what service is<br />

being requested.<br />

Restrictions<br />

The SMC instruction is available for selected <strong>ARM</strong> architecture-based processors, if they<br />

have the Security Extensions. See SMC on page 4-137 in the Assembler <strong>Guide</strong> for more<br />

information.<br />

The compiler generates an error if you compile source code containing the __smc<br />

keyword for an architecture that does not support the SMC instruction.<br />

Example<br />

__smc(5) void mycall(void); /* declare a name by which SMC #5 can be called */<br />

...<br />

mycall(); /* invoke the function */<br />

See also<br />

• SMC on page 4-137 in the Assembler <strong>Guide</strong>.<br />

4.1.14 __softfp<br />

The __softfp keyword asserts that a function uses software floating-point linkage.<br />

__softfp is a function qualifier. It affects the type of the function.<br />

Note<br />

This keyword has the #pragma equivalent #pragma __softfp_linkage.<br />

Usage<br />

Calls to the function pass floating-point arguments in integer registers. If the result is a<br />

floating-point value, the value is returned in integer registers. This duplicates the<br />

behavior of compilation targeting software floating-point.<br />

This keyword enables the same library to be used by sources compiled to use hardware<br />

and software floating-point.<br />

<strong>ARM</strong> DUI 0348A Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. 4-15<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!