01:198:111 Lecture Notes - Lecture 2: Java Bytecode, Binary System
cyansea-lion159 and 56 others unlocked
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.