Lecture 10

Lecture 10 - Th The University of Texas at Dallas Erik...

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

View Full Document Right Arrow Icon
Erik Jonsson School of Engineering and h U i it f T t D ll Computer Science The University of Texas at Dallas Assembly Language Programming First computer programs: Rewiring! (Remember the Lecture 1 picture?) Early programmers literally wired the computer circuits to solve the desired problem. Later stored-program computers , were programmed by loading “memory” (electrical relays, magnetically-coated rotating drum) with instructions manually, one at a time. g) y, There was a great need to make programming easier . The first programming support programs were © N. B. Dodge 09/09 1 Lecture #10: Assembly Language Programming; Introduction to SPIM assemblers .
Background image of page 1

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

View Full DocumentRight Arrow Icon
Erik Jonsson School of Engineering and h U i it f T t D ll Computer Science The University of Texas at Dallas Assembly Language Programming (2) Assemblers allow the programmer to use simple names for instructions in writing a program. “Add,” for example. The program is constructed using instruction acronyms. he assembler converted the English xt names to the The assembler converted the English text names to the combination of 1’s and 0’s that represented each instruction in the computer. utomatic program loading was developed ( g tape, disk). Automatic program loading was developed (e.g.: tape, disk). Later, compilers arrived on the scene. Provide high level of abstraction ( takes care of details ). © N. B. Dodge 09/09 2 Lecture #10: Assembly Language Programming; Introduction to SPIM One compiler statement = many machine instructions.
Background image of page 2
Erik Jonsson School of Engineering and h U i it f T t D ll Computer Science The University of Texas at Dallas Why Learn Assembly Language? Compilers high level of abstraction eases program development load, but reduces the “feel” of the software- hardware interaction . That is, compilers remove the lower-level visibility of computer and program operation (an example shortly). Assembly language programming gives students a better feel for computer operation. p p Learning and using assembly language also helps in understanding much of the basics of computer design. © N. B. Dodge 09/09 3 Lecture #10: Assembly Language Programming; Introduction to SPIM Some programs still need assembly language precision .
Background image of page 3

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

View Full DocumentRight Arrow Icon
Erik Jonsson School of Engineering and h U i it f T t D ll Computer Science The University of Texas at Dallas Steps in Constructing a Program Compile Write program in compiler language We will not do this step in EE 2310 Assemble Resulting assembly language program (or write program in assembly language) We will do these four steps in EE 2310 Link or link edit “Object code, ” or machine language module, with relative memory references Load achine instructions loaded in “Object code ” or machine language with library functions or macros © N. B. Dodge 09/09 4 Lecture #10: Assembly Language Programming; Introduction to SPIM Machine instructions loaded in computer; absolute memory references
Background image of page 4
Erik Jonsson School of Engineering and h U i it f T t D ll Computer Science
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 27

Lecture 10 - Th The University of Texas at Dallas Erik...

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

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