CS 25000 Lecture Notes - Lecture 12: Program Counter, Interrupt, Opcode

45 views2 pages

Document Summary

High-level languages featuring strong abstraction from the details of the computer; portable; programmer productivity. Portable among different computers with some effort; some machine-dependent features are visible; performance. Assembly languages: a distinct one for each computer, hardware dependence, just a few abstractions. 32- & 64- bit strings 32- & 64- bit strings strings strings. Assembly is two-pass, to computer offsets: many offset values are positive. If-then-else skips ahead in a program: skip ahead to else when condition =false, or execute then and skip over else. Instructions ahead in a program are located at higher numbered memory addresses. Initial pass of assembler eventually determines memory addresses of all labels, even those are forward references, recording progress in a symbol table. Lecture 12: position-dependent machine code can have it absolute addresses adjusted so that references remain correct when the code is relocated by using a relocation table, assembly supports defining data items using directives, examples:

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents