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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Compiler-specific Features<br />

Note<br />

The SMC instruction replaces the SMI instruction used in previous versions of the <strong>ARM</strong><br />

assembly language.<br />

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

Syntax<br />

__smc(int smc_num) return-type function-name([argument-list]);<br />

Where:<br />

smc_num<br />

Is a 4-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-140 in the Assembler Guide 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-140 in the Assembler Guide.<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 />

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

ID101213<br />

Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!