08.11.2014 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.

ディレクティブリファレンス<br />

7.8.8 EXPORTAS<br />

EXPORTAS デ ィ レ ク テ ィ ブを 使 用 する と 、 ソース フ ァ イル 内 の 別 のシンボルに<br />

対 応 する、 シンボルをオブジ ェ ク ト フ ァ イ ルにエ ク ス ポー ト で き ます。<br />

構 文<br />

EXPORTAS symbol1, symbol2<br />

各 項 目 には 以 下 の 意 味 があ り ます。<br />

symbol1<br />

symbol2<br />

ソースファイル 内 のシンボルの 名 前 を 指 定 します。symbol1 は 事<br />

前 に 定 義 されている 必 要 があ り ます。 この 名 前 には、 エリア 名 、<br />

ラベル、 ま たは 定 数 を 含 むシンボルを 指 定 で き ます。<br />

オブジ ェ ク ト フ ァ イルで 使 用 する シンボルの 名 前 を 指 定 し ます。<br />

シンボル 名 では 大 文 字 と 小 文 字 が 区 別 さ れます。<br />

使 用 法<br />

EXPORTAS を 使 用 する と 、 ソース フ ァ イル 内 の 各 イ ン ス タ ン ス を 変 更 する こ と<br />

な く 、 オブジ ェ ク ト フ ァ イル 内 のシンボルを 変 更 する こ と がで き ます。<br />

「EXPORT、 GLOBAL」 (ページ 7-92) も 参 照 して 下 さい。<br />

例<br />

AREA data1, DATA ; starts a new area data1<br />

AREA data2, DATA ; starts a new area data2<br />

EXPORTAS data2, data1 ; the section symbol referred to as data2 will<br />

; appear in the object file string table as data1.<br />

one EQU 2<br />

EXPORTAS one, two<br />

EXPORT one<br />

; the symbol 'two' will appear in the object<br />

; file's symbol table with the value 2.<br />

7-94 Copyright © 2002-2008 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0204IJ<br />

Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!