CAS CS 210 Lecture Notes - Lecture 8: Arithmetic Function, Rbx, Executable

124 views4 pages

Document Summary

Main point of the lecture: introduce to assembly language. In other words, resolves references between files (e. g. printf function). So you have all of the program represented in binary form: p1. To compile into assembly run the following in the terminal: Gcc og s sum. c (or whatever the name of the program is). The assembly code was produced but for some reason the name of file that contained assembly code was g" instead of . s. So just look for it in case if you do not see . s) They are made more or less to match c. For example: integer data is of 1, 2, 4, 8 bytes. Also there is no aggregate types such as arrays. Perform arithmetic function on register or memory. Transfer control (similar to if , while , and other conditional statements in c). Machine instruction example (basically how one line of code transforms from c to assembly and then to binary level):

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