EECS 1520 Lecture Notes - Lecture 2: Carriage Return, Binary File

18 views1 pages
of 1
Computer Science 1520 (Gordan Turpin)
Office Hours: CSE 3020 Tuesday and Thursday from 1:15 2:15
Parts of the Computer
Processor (CPU)
o All computations occur here
o Used for storage (small amount, quick, expensive)
Memory (RAM)
o Compared to Sequential Access Memory
o This is so that it is quicker to retrieve memory, instead of following a spool, it accesses
the info at about the same time
o Used for storage (not used to work on anything, copied into and out of Main Memory)
o Several spinning platters turning on a spindle
o Used for storage (used if things are not in main memory)
o When computer is off ALL files are in HDD, when computer is on most files are in HDD
For CPU and RAM, when power is off everything is lost. Not the case for HDD
When anything is on screen, what is seen is whatever is on the RAM and then can only be
changed on HDD if saved
Cache a temporary storage space, where multiple sources are stored if usually used together
Buffer a temporary storage space in the RAM
Everything coded in Binary codes
Bit a single binary Digit (0 or 1)
Byte 8 bits
Can look like a sheet of paper or an array
Files can be stored fragmented or continuously on hard drive (Donny likes it hard)
If each byte represents a letter it is known as a “text file” (.txt)
Carriage return = KA-CHUNG! (\r)
New line feed = (\n)
Two main types TEXT FILE and BINARY FILE
A binary file is anything that isn’t a text file
Executables force the computer to do things
Certain instructions, regardless of positions can be the same