??????????? Programming Language - PowerPoint PPT Presentation

1 / 30
About This Presentation
Title:

??????????? Programming Language

Description:

Programming Language Introduction Course outline : email ... – PowerPoint PPT presentation

Number of Views:77
Avg rating:3.0/5.0
Slides: 31
Provided by: csSuAcTh2
Category:

less

Transcript and Presenter's Notes

Title: ??????????? Programming Language


1
???????????Programming Language
  • Introduction

2
Course outline
  • ?????? ???????? ?????????
  • email tasanawa_at_su.ac.th
  • icq 29883888
  • ???????
  • Programming Language Concepts Constructs by
    Ravi Sethi, Addison-Wesley, 1996.
  • Concepts of Programming Languages by Robert W.
    Sebesta, Addison-Wesley, 1999.

2
3
??????????????????
  • Introduction
  • The role of programming language
  • Language Description syntactic structure
  • Imperative programming
  • Statement Structured programming
  • Types Data Representation
  • Procedure Activations
  • Object-Oriented Programming
  • Functional Programming
  • Logic Programming
  • ?????????????
  • ?????????? 35
  • ?????????? 35
  • Assignments 20
  • Report 10

4
???????????
  • ?????????? (tool) ????????????????????????????????
    ???????
  • ??????????????????????????????????????????????????
    ????????
  • ??????????????????????????????????????????????????
    ?????????? (high-level designs)
  • ????????????????????????????????? (notation for
    algorithms)
  • ????????????????????????????????????
  • ????????????????????????
  • ??????????????????????????????????????????????????
    ????

4
5
Von Neumann Architecture
  • ?????????????????????????????? ??????????????????
  • ????????????
  • ?????????????????????????????? 3 ???? ???
    ???????????, ??????????? ????????????????
  • ?????????????????????????????????????????????????
    ???????????? ?????????????????? 1 ???????????
  • ?????????????????????????????????????????????????
    ????? ???????????????????????????????????????????
    (Memory Address)

5
6
???????????
  • ?????????????????????????????? ???????????????????
    ??????????????????
  • ??????????????????????????????????????????????????
    ?????????????????? Von Neumann
  • ?????????????????????????????????????????
  • ???????????????????? ?????????????????????????????
    ????????????????????
  • ?????????????? ???????? imperative ????
    conventional language COBOL,FORTRAN,Pascal, C

6
7
????????????????????????
  • ?????????????????????????????????????????????????
  • ??????????????????????????????????????????????
  • ???????????????????????????????????
  • ??????????????????????????????????
  • ???????????????????????????????????????

7
8
??????????????????????????????????????
  • ??????????????????????????????????????(Computer
    Hardware and Operating System)
  • ????????????????????????? (Application)
  • ??????????????????? (Programming Methods)
  • ?????????????? (Implementation Methods)
  • ????????????? (Theoretical Study)
  • ???????????????? (Standardization)

8
9
?????????????????????
  • ?????? ?????????? Hardwired ????????????????????
    ????????????????????????????????
    ?????????????????????????????????
    ????????????????????????????????????????????????
  • ?????? ?????????????????????????????????????????
    ?? ?????????????????????????????
    ?????????????????????????????????????
  • ??????????????????????????? ? ????????? ?
    ?????????????????????????? (Hardware)

9
10
????????????????????????????(Levels of Language
in Computing)
10
11
?????????????????
  • ?????? 1 ??????????? (Machine Language)
  • ?????? 2 ????????????? (Symbolic Language)
  • ?????? 3 ???????????? (High Level Language)

11
12
???????????
  • Higher level
  • ??????????????????????????????????? (readability)
    ??????????????????????????????????????????????????
    ???
  • ??????????????????????????????????????? (machine
    independence)
  • General purpose
  • ??????????????????????????????????????????????????
    ?????????? ? ????????????

12
13
???????????
  • ???????????????????????????
  • ?????????????????????????????????
  • ????????????????? code ???????????????????
    ??????????????????????????????????????? ?
    (program text)
  • ????????????????
  • ????????????????????????
  • ?????????
  • ??????????????????????
  • 00000010101111001010
  • 00000010111111001000
  • 00000011001110101000
  • ?????????????????? 10 ?????????????????? 11
    ?????????????????????????????? 12

13
14
?????????????
Program
  • 1 M0 0
  • 2 read(M1)
  • 3 if M1 gt 0 then goto 5
  • 4 goto 7
  • 5 M3 M0 - M1
  • 6 if M3 gt then goto 16
  • 7 writeln(M1)
  • 8 read(M2)
  • 9 M3 M2 - M1
  • 10 if M3 gt then goto 12
  • .
  • .
  • 16 halt
  • ????????????????????????????? ????????????????????
    ?????????????????????????????????? (verbose)
  • ????????? Assembly ???????????????????????????????
    ??
  • ????????????????????????????????????????
  • ?????????????????????????????

14
15
15
16
????????????
  • ???????????????????????????????????????
  • ?????????????????????????????????????????????????
    ?????????????????????????????????? (portability
    / machine independence)
  • ???????????????????????? (program libraries)
  • ?????????????????????? (error) ???????????????????
    (implementation)

16
17
????????????
  • ???????????? 3 ?????? ???
  • ?????????? 3 (3GL- Fourth General Language)
  • ?????????? 4 (4GL- Fourth General Language)
  • ?????????? 5 (5GL- Fourth General Language)

17
18
?????????? 3
  • ??????????????????????????????????????????????????
    ?????????????????????????????????
  • ??????????? portable ????????????? object code
    ???????? (compile) ???????????????????????????????
    ???
  • ????????????????????? ??????

FORTAN C COBOL C BASIC Java Pascal Activ
eX
18
19
?????????? 4
  • ????????????????????????????????????????????? 3GL
  • ????????? text-based environment (????? 3GL)
  • ????????????????????? visual environment
    ???????????????????????????????? ??????????
    Prototype ???? GUI????????????????????
  • ??????????????????????????????????????????????????
  • ????????????????????? ??????

Visual Basic (VB) VisualAge Authoring
environments
19
20
?????????? 5
  • ?????????????????????????????? (Artificial
    Intelligence) ??????????????????? (Expert
    Systems) ?????????????????????? ????????????
  • ??????????????????????????????????????????????????
    ???
  • ?????????????????????????????????????????????????
    ???????????????????????????????????????????
  • ??????????????????????????????????????????????????
    ????

20
21
????????????????
  • ???????????????????????????????? (Concept)
  • ?????????????????????????? (Program Syntax)
  • ????????????????????????????????????
    (Application)
  • ???????????????????????????? (Verification)
  • ????????????????????????????? (Environment)
  • ????????????????????? (Portability)
  • ?????????? (cost)

21
22
Programming Environments
  • ?????????????? ? ???????????????????????
  • (Tools used in software development)
  • Unix
  • ????????????????????????????????????????????????
  • Borland C
  • ?????????????????????????? C ??? C ?? PC
  • Smalltalk
  • Language Processor/Environment
  • Microsoft Visual C
  • visual environment ???????????????????????

22
23
?????????????????????
  • ??????????????????????? (Needs analysis)
  • ????????????? (System)
  • ???????? (Development)
  • ?????????? (Implementation)
  • ????????????? (Maintenance)

23
24
Programming Domains
  • Scientific Application
  • Business Application
  • Artificial Intelligence
  • System Programming
  • Scripting Language
  • Special Purpose Language

24
25
Implementation Methods
  • Compilation
  • ??? (translate) ??????????????????????????????????
    ??
  • ??????????????
  • ????? (execute) ????
  • Interpreter
  • ???????????????????????????
  • ????????
  • Hybrid Implementation
  • cost ??????????????
  • ????????????????

25
26
Source program
Source program
Lexical analyzer
Lexical units
Syntax analyzer
Parse tree
Intermediate code generator (and semantic
analyzer)
Optimization
Symbol table
Intermediate code
Input data
Interpreter
Code generator
Machine language
Computer
Input data
Results
Results
Pure Interpretation
Compilation
26
Hybrid Implementation
27
Language Categories (Paradigms)
  • Imperative
  • Object-Oriented
  • Logic
  • Functional
  • Imperative
  • Procedural - C
  • Block-Structured -Pascal, Ada
  • Object-based - Ada
  • Object-oriented - Ada, Object-Pascal, C, Java
  • Parallel Processing - Ada, Pascal-S, Occam,
    C-Linda
  • Declarative
  • Logic - Prolog
  • Functional - LISP, Scheme
  • Database - SQL

27
28
1957 58 59 60 61 62 63
64 65 66 67 68 69 70
71 72 73 74 75 76 77
78 79 80 81 82 83 84
85 86 87 88 89 90 91
92 93 94 95
Algol58 Algol60 SIMULA Algol W
SIMULA67 Algol68
Pascal MODULA-2 Smalltalk80
Ada
C Oberon MODULA-3
ANSI C
Eiffel Ada95
Java
??????? ????????????? ?????????????????????? ?????
??????????
28
29
Assignment 1
  • ????????? ???????????????????????????? (10)
  • ??????????????????? (????????????????????)
  • http//directory.google.com/Top/Computers/Programm
    ing/Languages/
  • http//dir.lycos.com/Computers/Programming/Languag
    es/ ???? site ???? ? ?????????????
  • ????????????????????????????????
  • ??? mail ???????????????????????????????? URL
    ?????????????????????????? ?????????????? mail
    ?????????
  • ?????????????????????????
  • ?????????????? 1 ???? ????????????? PDF format
    ??????????? Cordia New 16

29
30
Assignment 1 (???)
  • ?????????? (?????????) ????????????????
    ??????????
  • ????????????????? ????????????? ?????????
    ?????????????????????????????? ?????????????????
  • ?????????????? ???????????????????????????????????
    ??? ???????????????????????
  • ??????????????????? ???????????? ?????????????
    ???????????????????
  • ????????????????????????????????? ??????????
    ?????????????? ???????????????????????????
    ???????
  • ???????? ?????????????????????????? ???????? code
    ???? compiler ????????? mailing list ???? chat
    room ???????
  • ????????????????????????????? ? ??? web site
    ?????
  • ???????? 19 ??????? 2546 ???? 16.00 ?.

30
Write a Comment
User Comments (0)
About PowerShow.com