L02 - Computer Science 1 1 SS C Lecture 2 Contents! 2!...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS101 Lecture 2 1 Computer Science 1 1 SS C Lecture 2 Contents Compilers, interpreters and java javac, java commands Installing Java Writing the "Hello World" program Coursebook: §1 2 Computer Organisation Most computers consist of three major components: • a processor (central processing unit) • main memory • a long term storage device such as a hard disk • input and an output device 3 Computer Organisation Computer programs are stored as Fles on the hard disk. When a program runs, the executable Fle is Frst transferred to main memory, and the processor then executes the instructions from main memory one at a time. e.g. notepad.exe wmplayer.exe What do these instructions look like? 4 Computer Organisation Every computer ʼ s processor understands a small set of very primitive instructions, for doing things such as: 1001 0011 1001 0100 0100 1110 1010 1011 1111 0000 0101 0000 1010 0000 1011 0101 0101 0101 0100 0010 0000 1010 1000 1000 1111 1100 1001 0010 1010 1010 0100 0001 0100 1100 1010 0000 1001 0100 1001 0001 0010 0010 0000 1010 1010 1010 0100 0100 1001 0110 0100 1110 0001 0101 These instructions are known as machine language or machine code and are represented in binary form as 1 ʼ s and 0 ʼ s. • moving data around, • performing arithmetic, • making decisions about which instruction to execute next 5 Compilers A compiler translates
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

L02 - Computer Science 1 1 SS C Lecture 2 Contents! 2!...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online