On the menu today - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

On the menu today

Description:

... to be trnaslated into a machine language program, 'object program' before it runs. Program that can do such translation are called compilers. 8. B ... – PowerPoint PPT presentation

Number of Views:33
Avg rating:3.0/5.0
Slides: 15
Provided by: annbur
Category:
Tags: menu | today

less

Transcript and Presenter's Notes

Title: On the menu today


1
On the menu today
  • I- Syntax and semantics - Programs format
  • II- Compilation Execution (CE)

2
I- Syntax and semantics - Programs format
3
  • A- Syntax refers to
  • 1- sentences structure
  • 2- the way in which words are put together to
    form sentence,
  • 3- It provide a set of rules
  • It is important in programming languages, in C

4
  • B- Semantics refers to
  • 1- the study of the the meaning of signs,
    symbols
  • C has many symbols, some with different
    meaning under different circumstances.

5
  • C- Programs format Criteria for a good program
  • 1- correct syntax
  • 2- correct behavior
  • 3- good style (guidelines for readability)
  • Its important that our program source be
    readable

6
  • II- Compilation Execution (CE)

7
  • A- Compilers
  • After writing a high-level language program
    (source program, source code) it needs to be
    trnaslated into a machine language program,
    object program before it runs.
  • Program that can do such translation are called
    compilers

8
  • B- Compilation Process

Program Source
Program Object
Program executable
9
  • B- Vocabulary about Compilation Execution
  • 1- Source program or source code
  • 2- Compile time errors syntactical errors we
    have made, which prevent the program from
    successful compilation

10
  • B- Vocabulary about Compilation Execution
  • 3- Clean compile the result of compiling a
    syntactically correct program. There are no
    compile-time errors.
  • 4- Executable the file containing the machine-
    language statements which the computer will
    execute.

11
  • B- Vocabulary about Compilation Execution
  • 5- Execution results The behavior of the program
    when it actually executes on the computer

12
  • C- Compilation Execution Examples
  • 1- Compilation Initializing C
    ompiling C\msvc\AGA\rectangl.cpp RECTANG
    L.CPP - 0 error(s), 0 warning(s)

13
  • C- Compilation Execution Examples
  • 2- Execution (how it looks.) enter the length
    and the width of the rectangle 5
    4

    the area is20

14
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com