You are on page 1of 2

Process, memory, registers, cache, storage

 process(or): arithmetic and logical unit (ALU) (+, -, <, >) + control unit (controls the order,
flow, type of ALU circuit) + CPU (registers) + cache + input/output (usually controlled by bus
controller) + clock (makes multiplexing possible) (multiplexing – multiple communications per
facility, which is the CPU)
 64-byte register (registers is a size word) – fast, but expensive
 64-byte processor has a 64-byte register
 instructions and data loaded into register; act operand is machine/assembly language
 cache > register … cache site is inside CPU, where frequently used instructions and data can
be stored … fast, but not as fast as register … expensive, but not as expensive as register
 memory is external to the CPU … fast, but not as fast as cache … not really expensive …
stores running program
 storage: nonvolatile, cheap, used for mass storage

rank in order of fastest: register, cache, memory, storage

quiz: MC, need to study a lot, this guy is going to purposely make this super hard

Relation btwn hard level language (Assembly language) and machine language

Hard level language: abstract


- Requires editor, compiler, debugger
- Java also has java developing kit/IDE
o JVM runs byte code for java
o JDK generates the byte code – changes from HLL to machine

Assembly: less abstract


- Mnemonic representation of the machine language
- Requires a program called assembler
- Also requires an editor

Machine language: least abstract


- Register size instructions
- Binary/flex

- Machine language gets fastest code – most efficient


- HLL = least efficient (bc needs to converted into machine language)
Program structure of Java
- Java program consists of a class
- Class is saved in a file with class name.java --- Classname.java (starts w uppercase)
- Execution starts with the main method
o Declared public, static, void, main (String[]args) {

Public Classname {
Public static void main(String[]args){
//program goes here

}
}

You might also like