31.12.2013 Views

Linkage Kit Manual V6-00 - Fujitsu

Linkage Kit Manual V6-00 - Fujitsu

Linkage Kit Manual V6-00 - Fujitsu

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

CHAPTER 2 OPTIONS<br />

2.3 Notes and Evaluation When Option is Specified<br />

When specifying options, some options need duplicated specification and some need<br />

sequence to specify them.<br />

In the linkage kit, the options are evaluated according to rules.<br />

■ Notes and Evaluation When Specified Option<br />

The precautions and rules of evaluation when specifying options are described below.<br />

● Options that require no parameters<br />

Specifying only once is enough. Duplicated specifications have no meaning.<br />

[Example]<br />

-V : Specifying the message output<br />

Duplicated specification like -V -V has no meaning and is error-free.<br />

● Options that require parameters<br />

When duplicated specification is required, there are different methods of evaluation as shown below.<br />

• Only the last specification is effective.<br />

• The order in which the specifications appear has specific intent, and all specifications are effective.<br />

• The order in which the specifications appear is irrelevant, and all specifications are effective.<br />

[Example 1 Only the last option which is specified is valid]<br />

-o file.abs :Specifying the output file<br />

When options are specified two or more times like -o file.abs -o file.rel, the specification that is entered last<br />

becomes effective. (In this case, file.rel becomes effective.)<br />

[Example 2 Order of specifying options has meaning and all specifications are effective]<br />

-l lib1.lib -l lib2.lib : Specifying the library retrieval (linker)<br />

When options are specified in order, such as -l lib2.lib -l lib1.lib, order of retrieving library is inverted.<br />

[Example 3 Order of specifying options has no meaning, yet all specifications are effective]<br />

-sc CODE=0x1<strong>00</strong>0 -sc DATA=0x2<strong>00</strong> : Specifying location of sections (linker)<br />

When options are specified in order, such as -sc DATA=0x2<strong>00</strong> -sc CODE=0x1<strong>00</strong>0, all options are effective<br />

because the location of sections are individually independent.<br />

24 PART I LINKAGE KIT

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

Saved successfully!

Ooh no, something went wrong!