C++ ☺













How to 
a.   Compilation process.  
b.   Execute the program.  

Execution in computer and software engineering is the process by which a computer or a virtual machine carries out the instructions of a computer program. The instructions in the program trigger sequences of simple actions on the executing machine. Those actions produce effects according to the semantics of the instructions in the program.
Programs for a computer may execute in a batch process without human interaction, or a user may type commands in an interactive session of an interpreter. In this case the "commands" are simply programs, whose execution is chained together.
The term run is used almost synonymously. A related meaning of both "to run" and "to execute" refers to the specific action of a user starting (or launching or invoking) a program, as in "Please run the ... application."


  1. Compilation: source code ==> relocatable object code (binaries)
  2. Linking: many relocatable binaries (modules plus libraries) ==> one relocatable binary (with all external references satisfied)
  3. Loading: relocatable ==> absolute binary (with all code and data references bound to the addresses occupied in memory)
  4. Execution: control is transferred to the first instruction of the program
  5. At compile time (CT), absolute addresses of variables and statement labels are not known.
In static languages (such as Fortran), absolute addresses are bound at load time (LT).
In block-structured languages, bindings can change at run time (RT).

_________________________________________________________________________________

WHAT IS C++


C++ is an "object oriented" programming language created by Bjarne Stroustrup and released in 1985. It implements "data abstraction" using a concept called "classes", along with other features to allow object-oriented programming. Parts of the C++ program are easily reusable and extensible; existing code is easily modifiable without actually having to change the code. C++ adds a concept called "operator overloading" not seen in the earlier OOP languages and it makes the creation of libraries much cleaner.
C++ maintains aspects of the C programming language, yet has features which simplify memory management. Additionally, some of the features of C++ allow low-level access to memory but also contain high level features.
C++ could be considered a superset of C. C programs will run in C++ compilers. C uses structured programming concepts and techniques while C++ uses object oriented programming and classes which focus on data. Read about the History of C and also about the History of C++.















No comments:

Post a Comment