the development process compilation. compilation - dr. craig a. struble 2 programming process...

10

Click here to load reader

Upload: gerald-henderson

Post on 18-Jan-2018

214 views

Category:

Documents


0 download

DESCRIPTION

Compilation - Dr. Craig A. Struble 3 Developing Programs in High-Level Languages Editor Source File Compiler Object File Linker Executable Loader Other Object Files

TRANSCRIPT

Page 1: The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on

The Development Process

Compilation

Page 2: The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on

Compilation - Dr. Craig A. Struble2

Programming Process

Problem Solving Phase

We will spend significant time on this next week.

Implementation Phase

• Create a concrete solution• Test your solution• Fix errors, add features, and test again.

Page 3: The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on

Compilation - Dr. Craig A. Struble3

Developing Programs in High-Level Languages

Editor Source File

Compiler Object File

Linker Executable

Loader

Other Object Files

Page 4: The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on

Compilation - Dr. Craig A. Struble4

Terminology

Source file– Text file containing computer program

Compiler– Program that translates high-level languages to

machine language Object file

– Machine language file generate by compiler

Page 5: The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on

Compilation - Dr. Craig A. Struble5

Terminology

Standard library– Object file containing standard features of high-level

languages Linker

– Program that combines several object files and standard libraries into an executable

Executable– A file containing the machine code that will run in an

operating system (e.g., Windows)

Page 6: The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on

Compilation - Dr. Craig A. Struble6

Terminology

Loader– A part of an operating system that places an

executable into memory and starts its execution

Page 7: The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on

Compilation - Dr. Craig A. Struble7

Integrated Development Environments (IDE)

Integrated set of development tools– Editor, compiler, and linker are in one inclusive

environment– Usually tuned for a specific high-level language– Details of development are hidden but still occur

Visual C++ is an IDE supporting C++

Page 8: The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on

Compilation - Dr. Craig A. Struble8

Visual C++ Terminology

A project is a collection of source files, object files, and executables generated during development.– Usually stored in a single directory called the project

location– Your projects in this course will contain only one

source file

Page 9: The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on

Compilation - Dr. Craig A. Struble9

Visual C++ Project Types

Win32 Application• Graphical applications• Windows, buttons, etc.

Win32 Console Application• DOS Command Window• Text-only input/output

Page 10: The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on

Compilation - Dr. Craig A. Struble10

Visual C++ Input and Output Files

Input files expected by your programs must be stored in the project location directory.– Programs fail to run if the input files are not found– Do NOT put input files in the Debug directory

Output files are generated in the project location directory.