12.07.2015 Views

RealView Compilation Tools コンパイラユーザガイド - ARM ...

RealView Compilation Tools コンパイラユーザガイド - ARM ...

RealView Compilation Tools コンパイラユーザガイド - ARM ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

コーディング 慣 行一 方 、 後 置 構 文 の 場 合 は、 引 数 と 戻 り 値 の 型 が 関 数 ポ イ ン タ であ る 関 数 を 宣言 する と き に、 __pure が 引 数 、 戻 り 値 の 型 、 ま たはベース 関 数 のいずれに 適用 されるかを 明 白 に 区 別 できます。 以 下 に 例 を 示 し ます。int (*foo1(int) __pure) (int); /* foo1 is a pure function returninga pointer to a normal function */int (*foo2(int)) (int) __pure; /* foo2 is a function returninga pointer to a pure function */int (*foo3(int) __pure) (int) __pure; /* foo3 is a pure function returninga pointer to a pure function */この 例 では、 以 下 のよ うになり ます。• foo1 と foo3 自 体 が 修 飾 さ れています。• foo2 と foo3 は、 修 飾 さ れた 関 数 を 指 すポ イ ン タ を 返 し ます。• 関 数 foo3 と foo は 同 一 です。後 置 構 文 は 前 置 構 文 よ り 明 白 なので、 <strong>ARM</strong> 関 数 修 飾 子 を 使 用 し て 関 数 を 修 飾する 場 合 は、 可 能 な 限 り 後 置 構 文 を 使 用 する こ と をお 勧 め し ます。<strong>ARM</strong> DUI 0205IJ Copyright © 2002-2010 <strong>ARM</strong> Limited. All rights reserved. 5-19ID 100419Non-Confidential,

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

Saved successfully!

Ooh no, something went wrong!