Chapter_01_9e-Introduction to Computers and Programming
Chapter_01_9e-Introduction to Computers and Programming
Introduction
to
Computers
and
Programming
Figure 1-2
Figure 1-3
In Figure 1-4, the number 149 is stored in the byte with the
address 16, and the number 72 is stored at address 23.
1011010000000101
C++
BASIC Ruby
FORTRAN
Java
Visual Basic
COBOL
C#
JavaScript
C Python
Copyright © 2019 Pearson Education Ltd., All rights reserved.
From a High-Level Program to an
Executable File
a) Create file containing the program with a text
editor.
b) Run preprocessor to convert source file
directives to source code program statements.
c) Run compiler to convert source program into
machine instructions.
d) Run linker to connect hardware-specific code
to machine instructions, producing an
executable file.
Steps b–d are often performed by a single
command or button click.
Errors detected at any step will prevent
execution of following steps.
Copyright © 2019 Pearson Education Ltd., All rights reserved.
From a High-Level Program to an
Executable File