Back to Course

Introduction to C++

0% Complete
0/0 Steps
  1. C++: Basics
    5Topics
    |
    6 Quizzes
  2. C++: Compilation and Execution
    5Topics
    |
    6 Quizzes
  3. C++: Variables
    9Topics
    |
    10 Quizzes
  4. C++: Conditions Operators
    5Topics
    |
    6 Quizzes
  5. C++: Logical Operators
    3Topics
    |
    4 Quizzes
  6. C++: Loops and Errors
    8Topics
    |
    9 Quizzes
  7. C++: Vectors
    4Topics
    |
    3 Quizzes
Lesson 2, Topic 5
In Progress

C++: The Process

Yasin Cakal 30 Oct 2021
Lesson Progress
0% Complete

Your commands are conveyed to the computer through the compiler that translates human-readable form to computer-readable form.

This human-readable form that we write and read is known as the source code. The source code file is stored with the extensions .cpp or .h,

Then a compiler converts this language to a machine code. Such file with machine code is known as the executable, machine code or object code.

The source code runs through preprocessor, compiler, linker and is then converted to executable. When the compiler converts the source code file into the executable, it saves the file on the disk with .o extension, e.g., hello.o.

This machine code (also known as the object code) is then linked to the standard library used/called in the program. This created an executable image with no extension (e.g., hello), also saved on the disk.

The disk and then the CPU are loaded with executable for program execution according to the instructions.

The terminal in a mac is called the Command Prompt on Windows.

Responses

Leave a Reply

%d bloggers like this: