ARC180H1 Lecture Notes - Lecture 11: Central Processing Unit, Machine Code, The Algorithm

137 views39 pages

Document Summary

Machine code--(cid:862)before a (cid:272)o(cid:373)puter (cid:272)ode (cid:272)an be run, it must be converted into a computerexecutable format; this is called machine code. Machine code is usually represented (cid:271)(cid:455) (cid:1004)"s a(cid:374)d (cid:1005)"s. While this (cid:373)a(cid:455) look differe(cid:374)t fro(cid:373) hu(cid:373)a(cid:374)reada(cid:271)le (cid:272)ode, it is i(cid:374) fa(cid:272)t a dire(cid:272)t translation. This defines how the computer makes calculations and moves data into and out of the processor. Machine code or machine language is a set of instructions executed directly by a (cid:272)o(cid:373)puter"s (cid:272)e(cid:374)tral pro(cid:272)essi(cid:374)g u(cid:374)it (cid:894)cpu(cid:895). Ea(cid:272)h i(cid:374)stru(cid:272)tio(cid:374) perfor(cid:373)s a (cid:448)er(cid:455) spe(cid:272)ifi(cid:272) task all practical programs today are written in higher-level languages or assembly language. These languages - the (cid:862)sour(cid:272)e (cid:272)ode(cid:863) is then translated to executable machine code by utilities such as (cid:272)o(cid:373)pilers. (cid:863) The algorithm is a formalization of your design thinking. Variable--in computer programming, a variable is a storage location paired with an associated symbolic name (an identifier), which contains some known or unknown quantity of information referred to as a value.

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