01:198:111 Lecture Notes - Lecture 2: Java Bytecode, Binary System

92 views2 pages
cyansea-lion159 and 56 others unlocked
01:198:111 Full Course Notes
47
01:198:111 Full Course Notes
Verified Note
47 documents

Document Summary

Programs written in high level languages translated into machine languages that can be excecueted by the cpu. Cpu excecuting a program: program is in the main memory. loop {fetch > decode > execute} Also called {true, false}; {on, off}, {0, 1} Decimal value of a binary digit is sigma[di * 2^i] Binary patterns from n bits = 2^(n) bytes kilobytes megabytes gigabytes terabytes petabytes exobytes. For negative numbers, need an extra bit to show the sign of the number. Combine high level structures to build processors, memory, peripherals And: a b ab or: a b a+b. * know logic gates: print out truth tables. Binary addition is done only via (xor + and) gates. The cpu can execute very simple machine language instructions. Can obtain runnable code via compiler and interpreter. Compiler: translate higher level language into executable code. Interpreter: executes the computation written on a higher level language program.

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