Chapter 3

A2:

Consider both a very simple statement like A = B and a slightly more complex statement like A = B + C.

A3:

Can a statement lack a label and/or operands?

A4:

Examine all opcodes and directives.

A5:

Disambiguation, ease of change, etc.

A6:

0b101010, 052, 42, 0x2a for the Linux assembler.

A7:

a. Permitted by gcc; b. Seemingly not offered by ecc.

A8:

You will probably find 0x9c, 0x80, 0x03, 0x29, 0x53, 0x04.

A9:

A Unix/Linux assembler would be expected to compute 53.

A10:

30000: 0000 0000 0000 0066

30008: 0000 0000 0000 000C

30010: 0000 0000 0000 0022

here = 0x30000, relocatable; there = 0x68 absolute; this = 0x30008, relocatable; thing = 0xC8, absolute.

A11:

Hint: Use the .quad or data8 directive.

A12:

Compare the number of bundles with the number of actual Itanium instructions that the programmer wrote.

A13:

What do you know about the "structure" of a text file?

A14:

Consider that values for symbols may be found in any of the input object files or in system object libraries.



ItaniumR Architecture for Programmers. Understanding 64-Bit Processors and EPIC Principles
ItaniumR Architecture for Programmers. Understanding 64-Bit Processors and EPIC Principles
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 223

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net