100 likes | 237 Views
Instructor: Diana Schab Text: C Programming for Engineering and Computer Science by H.H.Tan Course Web Site: http://www.socc.edu/faculty/dschab/index.html. ENGR112 Engineering Orientation II. Computer Architecture. Central Processing Unit Main Memory
E N D
Instructor: Diana Schab Text: C Programming for Engineering and Computer Science by H.H.Tan Course Web Site: http://www.socc.edu/faculty/dschab/index.html ENGR112 Engineering Orientation II
Computer Architecture • Central Processing Unit • Main Memory • Peripheral Devices with Associated Controllers • Mass Storage Devices • Input/Output Devices
Data Storage • Bit • Byte (8 bits) • Word (16 bits) • Double Word (32 bits) • Quad Word (64 bits)
Data Representation • Characters • Numbers • Integer • Floating Point • Addresses • Instructions
Characters • Stored in 1 byte (8 bits) • ASCII Character Format • Standard Character Set (0 – 127) • Extended Character Set (128 -255) • EBCDIC • Unicode
Numbers • Integer • 16 bits (short) • 32 bits (long) • Floating Point • 32 bits (float) • 64 bits (double)
Number Systems • Binary (0-1) • Octal (0-7) • Decimal (0-9) • Hex (0-9, A, B, C, D, E, F)
255 Decimal Equals • 11111111 Binary • 377 Octal • FF Hex
C Programming Language • Developed in early 1970’s by Dennis Ritchie at Bell Labs (now Lucent Technologies) • Developed to replace assembly language for creating system software
C Programming Language • Highly portable and machine independent • ANSI C approved 1989, ISO C approved 1990 • Influenced by BCPL and B language