A CSE 113 B NNOUNCEMENTS 1/19/2010

advertisement
1/19/2010
CSE 113 B
A NNOUNCEMENTS

If you have not picked up a syllabus, please do so

Assignment #1 – sign and return form on last page of
syllabus – must be turned in by end of class Monday,
January 25th to receive full credit.

Take note of course website on syllabus – UBlearns
will only be used for posting grades, so please make
sure to check the website for course schedule and
other information (including these slides which will
be linked from the course schedule page at the end
of each week).

No recitations meet this week

No classes meet Monday, January 18
1
1/19/2010
W HAT DOES A COMPUTER
UNDERSTAND ?

0’s and 1’s (zeros and ones)
B ITS
AND
B IT S TRINGS

The 0 or 1 is called a binary digit (bit).

A sequence of bits is called a bit string.

0100101 is a bit string

What does it mean/represent?
2
1/19/2010
I NTERPRETING B IT PATTERNS

Binary

Two’s complement

IEEE 754

ASCII/EBCDIC/Unicode
C ONVERSION FROM DECIMAL
TO BINARY
3
1/19/2010
E NCODING MACHINE
INSTRUCTIONS

Use bits to encode those as well

When we want the machine to follow those
instructions:

Fetch

Decode

Execute
A SSEMBLY

ADD r1 r2

STOR r2 r1

SUB r3 r1
LANGUAGE
4
1/19/2010
H IGH - LEVEL

LANGUAGES
Step closer to natural language from machine
language.
TOOLS

Editor

Compiler

Execution Environment
5
1/19/2010
O UR L ANGUAGE : J AVA

High level programming language

Object-oriented
6
Download