ARM.SoC.Architecture

The following program has the required function hello

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: erminal window. Exercise 6.1.1 Generate an assembly listing from the compiler (using the '-s' option) and look at the code which is produced. Run the program under the debugger, using single-stepping to observe the progress of the processor through the code. Exercise 6.1.2 Examples and exercises 187 Example 6.2 Write the number 2001 in 32-bit binary, binary-coded decimal, ASCII and single-precision floating-point notation. Exercise 6.2.1 Write a C program to convert a date presented in Roman numerals into decimal form. Example 6.3 Show how the following data is organized in memory: struct SI {char c; int x;}; struct S2 { char c2[5]; SI si [2]; } example; The first structure statement only declares a type, so no memory is allocated. The second establishes a structure called 'example' comprising an array of five characters followed by an array of two structures of type SI. The structures must start on a word boundary, so the character array will be padded out to fill two words and each structure will also occupy two words. The memory organization is therefore as shown below: Exercise 6.3.1 Show how the same structure would be organized in memory if it were packed. The Thumb Instruction Set Summary of chapter contents The Thumb instruction set addresses the issue of code density. It may be viewed as a compressed form of a subset of the ARM instruction set. Thumb instructions map onto ARM instructions, and the Thumb programmer's model maps onto the ARM programmer's model. Implementations of Thumb use dynamic decompression in an ARM instruction pipeline and then instructions execute as standard ARM instructions within the processor. Thumb is not a complete architecture; it is not anticipated that a processor would execute Thumb instructions without also supporting the ARM instruction set. Therefore the Thumb instruction set need only support common application functions, allowing recourse to the full ARM instruction set where necessary (for instance, all exceptions automatically enter ARM mode). Thumb is fully supported by ARM development tools, and an application can mix ARM and Thumb subroutines f...
View Full Document

This document was uploaded on 10/30/2011 for the course CSE 378 380 at SUNY Buffalo.

Ask a homework question - tutors are online