ISA2 - Computer Science 230H Instruction Set...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
1 ISA Computer Science 230H Instruction Set Architecture (ISA) Prepared by Michael Jack Fall 2007 Slides set 2
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 ISA References The information and figures for the following slides were prepared from the following sources: Patterson, D., and Hennessy J., Computer Organization and Design, 3rd edition, 2005 Stallings, W., Computer Organization and Architecture: Designing for Performance 7 th edition, 2006 Hircock B., Computer Science 230 Course Notes
Background image of page 2
3 ISA Endianness • Byte ordering, or endianness , is another major architectural consideration (an annoying phenomenon.) • How the bytes within a word and the bits within a byte are both referenced and represented? – E.g. if we have a two-byte integer, the integer may be stored so that the least significant byte is followed by the most significant byte or vice versa.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 ISA Endianness (cont) • Big endian – Stores the most significant byte of a multibyte numerical value first (in the lowest numerical address.) • Little endian – Stores the least significant byte of a multibyte numerical value first (in the highest numerical address.) • Bi-endian – Can handle both styles.
Background image of page 4
5 ISA Suppose we have the 32-bit hexadecimal value 0h12345678 that is stored in a 32-bit word in byte-addressable memory. – The value consists of four bytes, with the least significant byte containing the value 78 and the most significant byte containing the value 12. The big endian and small endian arrangements of the bytes are shown below. Endianness (cont)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 ISA The big endian stores the most significant byte in the lowest numerical byte address. The little endian stores the most significant byte in the highest numerical address. For a given multibyte scalar value, bug endian and little endian are byte-reversed mappings of each other. Endianness (cont)
Background image of page 6
7 ISA The concept of endianness presents a problem when: – It is necessary to treat a multibyte value as a single data item with single address, even though it is composed of smaller addressable units. – A programmer attempts to manipulate individual bytes or bits within a multibyte scalar. – Data are transferred from a machine of one endian type to the other The property of endianness does not extend beyond an individual data unit. – It does not affect the ordering of data items within a structure. Endianness (cont)
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
8 ISA Bi-endian architecture – Enables programmers to choose either mode when migrating OSs and applications from other machines. – The OS establishes the endian mode in which processes execute. • Once a mode is selected, all subsequent memory loads and stores are determined by the memory-addressing model of that mode. • Thus mode can be changed on a per-process basis.
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/14/2010 for the course COMPUTER S COIS-3030 taught by Professor Hircock during the Spring '10 term at Trent University.

Page1 / 36

ISA2 - Computer Science 230H Instruction Set...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online