• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
1
History of C and C++
\u2022C Language
\u2013Developed by Brian Kernighan and Dennis Ritchie at Bell
laboratories.
\u2013Ideal for developing systems software (operating system,
compilers, editors, databases and graphics)
\u2022C++ evolved from C
\u2013C evolved from two other programming languages, A PL
and BPL
\u2022C Language
\u2013ANSI(American National Standard Institute)
\u2013Established worldwide standards for C programming
\u2022C++
\u2013Developed by Bjarne Stroustrop at Bell Labs
\u2013Applications written in C++ are machine-independent
2
C++ Standard Library
\u2022C++ \u201cspruces up\u201d C
\u2013Provides capabilities for object-oriented programming
\u2022Objects are reusable software components that model things in
the real world
\u2022Object-oriented programs are easy to understand, correct and
modify
\u2022C++ programs
\u2013Built from pieces called classes and functions
\u2022C++ standard library
\u2013Provides rich collections of existing classes and functions for
all programmers to use
3
Basics of a Typical C++ Environment
Phases of C++ Programs:

1. Editor
2. Preprocessor
3. Compiler
4. Linker
5. Loader
6. Execute

Loader
Primary
Memory

Program is created in
the editor and stored
on disk.

Preprocessor program
processes the code.
Loader puts program
in memory.
CPU takes each

instruction and
executes it, possibly
storing new data
values as the program
executes.

Compiler

Compiler creates
object code and stores
it on disk.

Linker links the object
code with the libraries,
createsa.out and
stores it on disk

Editor
Preprocessor
Linker
CPU
Primary
Memory
Disk
Disk
Disk
Disk
Disk
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...