Chapter 11 - The C Language

Chapter 11 - The C Language - Chapter 11 The C Language...

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

View Full Document Right Arrow Icon
Chapter 11 - The C Language
Background image of page 1

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

View Full DocumentRight Arrow Icon
n BYU CS/ECEn 124 n Chapter 9 - Interrupts n 2 Dennis Ritchie (1940-2011) n Dennis Ritchie, the software developer who brought the world the C programming language and Unix operating system, has died at the age of 70. n Ritchie (known by the username "dmr") was part of a dynamic software development duo with Ken Thompson at Bell Labs,, which they joined in 1967 and 1966, respectively. Ritchie created the C programming language, which replaced the B programming language Thompson invented. n Two years later in 1969, they created Unix, initially designed for minicomputers. Unix was initially written in 1969 in assembly language and later in C. Unix went on to become key software for critical computing infrastructure around the world. “UNIX is very simple, it just needs a genius to understand its simplicity.” --Dennis Ritchie
Background image of page 2
n BYU CS/ECEn 124 n The C Language n 3 Topics to Cover… n High Level Languages n Compilers vs. Interpreters n The C Language n 1st C Program n C Style n C Preprocessor n printf Function n RBX430-1 Header Files n 2nd C Program
Background image of page 3

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

View Full DocumentRight Arrow Icon
n BYU CS/ECEn 124 n The C Language n 4 Levels of Abstraction Problems Algorithms Language Machine (ISA) Architecture Microarchitecture Circuits Devices Transistors Logic gates, multiplexers, memory, etc. MSP430 Architecture Machine code Assembly code High Level Languages
Background image of page 4
n BYU CS/ECEn 124 n The C Language n 5 High Level Languages n The closer a language is to your original specification, the easier the program is to write. n Many, many programming languages n LISP - LISt Processing n PROLOG - logic programming n MATLAB - matrix and vector manipulations n BASIC – interpreter for small computers n APL – matrix and vectors n FORTRAN – formula translation n COBOL – business and accounting n PASCAL – procedural n Ada – DOD large systems n Java – Internet n C, C++ …. High Level Languages
Background image of page 5

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

View Full DocumentRight Arrow Icon
n BYU CS/ECEn 124 n The C Language n 6 High Level Languages n Allow us to use symbolic names for values n Programmer simply assigns each value a name n Allow us to ignore many memory details, the compiler takes care of … n register usage n variable allocation n loads and stores from memory n callee/caller protocol n stack management for subroutine calls n Provide abstraction of underlying hardware n Hide low level details (ISA) from programmer n Uniform interface (not tied to ISA) to program n Portable software (works on different ISAs) n The compiler generates the machine code High Level Languages numberOfDays = 30; myCurrentPayPerHour = 10.75; switch_A = ON;
Background image of page 6
n BYU CS/ECEn 124 n The C Language n 7 High Level Languages n Provide expressiveness n Human-friendly orientation n Express complex tasks with smaller amount of code n English-like and human constructs n if-then-else… n while… n for. ..
Background image of page 7

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

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

This document was uploaded on 03/20/2012.

Page1 / 37

Chapter 11 - The C Language - Chapter 11 The C Language...

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

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