PF-Week-1
PF-Week-1
Between high-level language and machine language there are assembly language also called symbolic machine
code. Assembly language are particularly computer architecture specific. Utility program (Assembler) is used
to convert assembly code into executable machine code. High Level Programming Language are portable but
require Interpretation or compiling to convert it into a machine language which is computer understood.
1. Machine languages
2. Assembly languages
3. High-level languages
Any computer can directly understand only its own machine language. Machine language is the "natural
language" of a computer and as such is defined by its hardware design. Machine languages generally consist of
strings of numbers (ultimately reduced to 1s and 0s) that instruct computers to perform their most elementary
operations one at a time. Machine languages are machine dependent (i.e., a particular machine language can
be used on only one type of computer).
Machine-language programming was simply too slow, tedious and error-prone for most programmers. Instead
of using the strings of numbers that computers could directly understand, programmers began using
Englishlike abbreviations to represent elementary operations. These abbreviations formed the basis of
assembly languages. Translator programs called assemblers were developed to convert early assembly-
language programs to machine language at computer speeds.
Computer usage increased rapidly with the advent of assembly languages, but programmers still had to use
many instructions to accomplish even the simplest tasks. To speed the programming process, high-level
languages were developed in which single statements could be written to accomplish substantial tasks.
Translator programs called compilers convert high-level language programs into machine language. High-level
languages allow programmers to write instructions that look almost like everyday English and contain
commonly used mathematical notations.
INTRODUCTION TO C++:
C++ programming language is an enhanced version of C language that provides object-oriented programming
(OOP) capabilities. It is a superset of C, which means that you can use a C++ compiler to compile C programs.
Object oriented programming techniques differ significantly from the sequential programming used in C
programming language.
The C language was evolved from B by Dennis Ritchie at Bell Laboratories. C uses many important concepts of
BCPL and B. C initially became widely known as the development language of the UNIX operating system.
Today, most operating systems are written in C and/or C++. C is now available for most computers and is
hardware independent. With careful design, it is possible to write C programs that are portable to most
computers.
The widespread use of C with various kinds of computers (sometimes called hardware platforms)
unfortunately led to many variations. This was a serious problem for program developers, who needed to
write portable programs that would run on several platforms. A standard version of C was needed. The
American National Standards Institute (ANSI) cooperated with the International Organization for
Standardization (ISO) to standardize C worldwide; the joint standard document was published in 1990 and is
referred to as ANSI/ISO 9899: 1990.
C++, an extension of C, was developed by Bjarne Stroustrup in the early 1980s at Bell Laboratories. C++
provides a number of features that "spruce up" the C language, but more importantly, it provides capabilities
for object-oriented programming.
A revolution is brewing in the software community. Building software quickly, correctly and economically
remains an elusive goal, and this at a time when the demand for new and more powerful software is soaring.
Objects are essentially reusable software components that model items in the real world. Software developers
are discovering that using a modular, object-oriented design and implementation approach can make them
much more productive than they can be with previous popular programming techniques. Object-oriented
programs are easier to understand, correct and modify.
Object files are intermediate files that represent an incomplete copy of the program: each source file only
expresses a piece of the program, so when it is compiled into an object file, the object file has some markers
indicating which missing pieces it depends on. The linker takes those object files and the compiled libraries of
predefined code that they rely on, fills in all the gaps, and spits out the final program, which can then be run
by the operating system (OS).
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________
__________________________________________________________________________________________