SlideShare a Scribd company logo
Computer Software
Evolution of Programming
Languages
• Machine Languages
• Assembly Languages
• High-Level Languages
• Fourth-Generation Languages
Machine Languages
• The native language of the hardware
• Patterns of binary bits
• Machine specific, is non-portable
– is essentially the microcode of the processor
Assembly Languages
• Replace the pattern of binary bits with
– mnemonics for the commands
– variable names for memory locations
• Essentially a one-to-one mapping of the
machine language
• Still machine specific, is non-portable
High-Level Languages
• Represents multiple machine-level
statements with single statements
• Easier to learn and use
• Not machine specific, is portable
An Example
Machine Code Assembly Code High-Level Code
in Hex
27BB0001 ldah gp, main main()
23BD8050 lda gp, main {
23DEFFF0 lda sp, -16(sp) int a, b, c;
A61D8018 ldq r16, 8(gp) a = 3;
A77D8010 ldq r27, printf b = 4;
47E0F411 mov 7, r17 c = a + b;
B75E0000 stq r26, (sp) printf(“n%dn”, c);
6B5B4000 jsr r26, printf }
27BA0001 ldah gp, main
A75E0000 ldq r26, (sp)
23BD8050 lda gp, main
47FF0400 clr r0
23DE0010 lda sp, 16(sp)
6BFA8001 ret r26
Move from Language to
Language
• Computers only understand machine
language.
• Use an ASSEMBLER to convert a program
written in assembly language to machine
language.
• Use a COMPILER to convert a program
written in a high-level language to machine
language.
Executable Code
• Program code which is in machine language
and can be run (executed) by the computer
• Is hardware dependent you can’t run it on
just any machine
• On PCs PC usually have an EXE or a COM
extension
Object Code
• Program code which is in machine language
but which is not ready to be run (i.e. it is a
partial program).
• Is hardware dependent.
• On PCs usually has an OBJ extension.
• Not commonly used by end-users.
Source Code
• Program code which is written in a high-
level language.
• Cannot be run by the computer.
• Is usually a text file.
• File name extension usually reflects the
high-level language
– BASIC - BAS extension
– Pascal - PAS extension
Compiler & Files
Object Code
Executable
Code
Source
Code
Compiler
Linker
Object Code
Library
Error Messages
Program Listing
Dynamic Link Libraries
• Some Window programs use “run-time”
linking and and require the presence of
dynamic link library files which have a
DLL extension.
• DLL files ideally contain code which would
be used by a number of programs.
Object Libraries & DLLs
• Both contain “commonly” used code.
• With object libraries all the code is included
in the executable file at compile time so:
– programming effort is saved
– no space saving is realized, executables which
use common code have their own copy of the
library code
Object Libraries & DLLs
• With DLLs the code is “fetched” from the
DLL file at “run time” so:
– programming effort is saved
– space savings “may” be realized
– the more executables that use the library code
the greater the savings
– typically only a small part of the library code is
used
Common HLLs
• FORTRAN
• COBOL
• BASIC
• Pascal
• C
• C++
• PL/1
• Ada
• JAVA
• LISP
• Prolog
Fourth Generation Languages
• First three generations focused on
describing “HOW TO DO” a task.
• 4GLs focus on describing “WHAT TO
ACCOMPLISH”
• The fourth generation language compiler
must be able to translate the “what to
accomplish” description into a machine
level “how to” set of instructions.
Categories of 4GLs
• Query languages
• Report generators
• Graphics languages
• Application generators
• Very high-level programming languages
• Application software packages
• Microcomputer tools
Categories of Software
• System Software
– Operating Systems (OS)
– Language Translators
– Utility Programs
• Application Software
Operating Systems
• It is the job of the operating system to
manage the computers resources and control
the execution of programs.
• Computer resources include
– memory
– device drivers for peripheral devices
• The OS is the interface between the
hardware and the user/application program.
Layers of interaction
Hardware
System Software
Application Software
Users
Operating Systems
• OSs run the full spectrum from
– single program-single user, to
– multitasking, multi-user, with virtual memory
• The OS decides which program runs and for
how long.
• The OS improves throughput by skipping
over processes that are waiting for I/O.
Common Operating Systems
• CP/M
• DOS
• Windows 3.1
• Windows 95
• Windows NT
• OS/2
• System 7
• Mac OSX
• Linux
• UNIX
• VMS
• VM/CMS
More RAM needed!
• Newer OSs extend the capabilities of
desktop computers but require more RAM
• Windows 3.0 - 1MB (std),2MB (real)
• Windows 95 - 8MB recommended
• Windows NT 4.2 - 16MB (32 rec.)
• Windows 2000 - 64MB min.
• Windows XP - 128MB rec.(64MB min)
• Windows Vista - 1GB rec. (512MB min)

More Related Content

Similar to Week - 04, 05 Software Chapter 2 info sys.ppt

Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming
VanessaBuensalida
 
programming.pptx
programming.pptxprogramming.pptx
programming.pptx
DarianElmyra
 
Compilers.pptx
Compilers.pptxCompilers.pptx
Compilers.pptx
MohammedMohammed578197
 
Compiler Design Introduction
Compiler Design IntroductionCompiler Design Introduction
Compiler Design Introduction
Kuppusamy P
 
Introduction to Compilers
Introduction to CompilersIntroduction to Compilers
Introduction to Compilers
Akhil Kaushik
 
Python-unit -I.pptx
Python-unit -I.pptxPython-unit -I.pptx
Python-unit -I.pptx
crAmth
 
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Professor Lili Saghafi
 
Python-L1.pptx
Python-L1.pptxPython-L1.pptx
Python-L1.pptx
DukeCalvin
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
PmarkNorcio
 
Computer languages
Computer languagesComputer languages
Computer languages
AqdasNoor
 
Computer languages
Computer languagesComputer languages
Computer languages
Buxoo Abdullah
 
Chapter 4 computer language
Chapter 4 computer languageChapter 4 computer language
Chapter 4 computer language
Azimjon Khamdamov
 
Evolution and History of Programming Languages - Software/Hardware/System
Evolution and History of Programming Languages - Software/Hardware/SystemEvolution and History of Programming Languages - Software/Hardware/System
Evolution and History of Programming Languages - Software/Hardware/System
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
Gwyneth Calica
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
X-CS-8.0 Programming in C Language 2022-2023.pdf
X-CS-8.0 Programming in C Language 2022-2023.pdfX-CS-8.0 Programming in C Language 2022-2023.pdf
X-CS-8.0 Programming in C Language 2022-2023.pdf
Alefya1
 
System softare
System softareSystem softare
System softare
Dr. C.V. Suresh Babu
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
Anshumali Singh
 
Programming language
Programming languageProgramming language
Programming language
MalayKalavadia
 
Presentation on Programming Languages.
Presentation on Programming Languages.Presentation on Programming Languages.
Presentation on Programming Languages.
Mohammad Shakirul islam
 

Similar to Week - 04, 05 Software Chapter 2 info sys.ppt (20)

Introduction to computer programming
Introduction to computer programming Introduction to computer programming
Introduction to computer programming
 
programming.pptx
programming.pptxprogramming.pptx
programming.pptx
 
Compilers.pptx
Compilers.pptxCompilers.pptx
Compilers.pptx
 
Compiler Design Introduction
Compiler Design IntroductionCompiler Design Introduction
Compiler Design Introduction
 
Introduction to Compilers
Introduction to CompilersIntroduction to Compilers
Introduction to Compilers
 
Python-unit -I.pptx
Python-unit -I.pptxPython-unit -I.pptx
Python-unit -I.pptx
 
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
Programming Languages Categories / Programming Paradigm By: Prof. Lili Saghafi
 
Python-L1.pptx
Python-L1.pptxPython-L1.pptx
Python-L1.pptx
 
Introduction_to_Programming.pptx
Introduction_to_Programming.pptxIntroduction_to_Programming.pptx
Introduction_to_Programming.pptx
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Computer languages
Computer languagesComputer languages
Computer languages
 
Chapter 4 computer language
Chapter 4 computer languageChapter 4 computer language
Chapter 4 computer language
 
Evolution and History of Programming Languages - Software/Hardware/System
Evolution and History of Programming Languages - Software/Hardware/SystemEvolution and History of Programming Languages - Software/Hardware/System
Evolution and History of Programming Languages - Software/Hardware/System
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Introduction to Computer Programming
Introduction to Computer ProgrammingIntroduction to Computer Programming
Introduction to Computer Programming
 
X-CS-8.0 Programming in C Language 2022-2023.pdf
X-CS-8.0 Programming in C Language 2022-2023.pdfX-CS-8.0 Programming in C Language 2022-2023.pdf
X-CS-8.0 Programming in C Language 2022-2023.pdf
 
System softare
System softareSystem softare
System softare
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 
Programming language
Programming languageProgramming language
Programming language
 
Presentation on Programming Languages.
Presentation on Programming Languages.Presentation on Programming Languages.
Presentation on Programming Languages.
 

More from TALHA RIAZ PERSOTA

Week - 06, 07, 08 DataMgt Chapter 3.pptx
Week - 06, 07, 08 DataMgt Chapter 3.pptxWeek - 06, 07, 08 DataMgt Chapter 3.pptx
Week - 06, 07, 08 DataMgt Chapter 3.pptx
TALHA RIAZ PERSOTA
 
Week - 01, 02, 03 Bits-n-Pieces Chapter 1.ppt
Week - 01, 02, 03 Bits-n-Pieces Chapter 1.pptWeek - 01, 02, 03 Bits-n-Pieces Chapter 1.ppt
Week - 01, 02, 03 Bits-n-Pieces Chapter 1.ppt
TALHA RIAZ PERSOTA
 
ch01_02.ppt
ch01_02.pptch01_02.ppt
ch01_02.ppt
TALHA RIAZ PERSOTA
 
Lab # 05 Workshop Practice.pptx
Lab # 05 Workshop Practice.pptxLab # 05 Workshop Practice.pptx
Lab # 05 Workshop Practice.pptx
TALHA RIAZ PERSOTA
 
Lab # 03 Workshop Practice.pptx
Lab # 03 Workshop Practice.pptxLab # 03 Workshop Practice.pptx
Lab # 03 Workshop Practice.pptx
TALHA RIAZ PERSOTA
 
Lab # 02 Workshop Practice.pptx
Lab # 02 Workshop Practice.pptxLab # 02 Workshop Practice.pptx
Lab # 02 Workshop Practice.pptx
TALHA RIAZ PERSOTA
 
Lab # 01 Workshop Practice.pptx
Lab # 01 Workshop Practice.pptxLab # 01 Workshop Practice.pptx
Lab # 01 Workshop Practice.pptx
TALHA RIAZ PERSOTA
 

More from TALHA RIAZ PERSOTA (7)

Week - 06, 07, 08 DataMgt Chapter 3.pptx
Week - 06, 07, 08 DataMgt Chapter 3.pptxWeek - 06, 07, 08 DataMgt Chapter 3.pptx
Week - 06, 07, 08 DataMgt Chapter 3.pptx
 
Week - 01, 02, 03 Bits-n-Pieces Chapter 1.ppt
Week - 01, 02, 03 Bits-n-Pieces Chapter 1.pptWeek - 01, 02, 03 Bits-n-Pieces Chapter 1.ppt
Week - 01, 02, 03 Bits-n-Pieces Chapter 1.ppt
 
ch01_02.ppt
ch01_02.pptch01_02.ppt
ch01_02.ppt
 
Lab # 05 Workshop Practice.pptx
Lab # 05 Workshop Practice.pptxLab # 05 Workshop Practice.pptx
Lab # 05 Workshop Practice.pptx
 
Lab # 03 Workshop Practice.pptx
Lab # 03 Workshop Practice.pptxLab # 03 Workshop Practice.pptx
Lab # 03 Workshop Practice.pptx
 
Lab # 02 Workshop Practice.pptx
Lab # 02 Workshop Practice.pptxLab # 02 Workshop Practice.pptx
Lab # 02 Workshop Practice.pptx
 
Lab # 01 Workshop Practice.pptx
Lab # 01 Workshop Practice.pptxLab # 01 Workshop Practice.pptx
Lab # 01 Workshop Practice.pptx
 

Recently uploaded

IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
mamunhossenbd75
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
rpskprasana
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
KrishnaveniKrishnara1
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
wisnuprabawa3
 

Recently uploaded (20)

IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
 

Week - 04, 05 Software Chapter 2 info sys.ppt

  • 2. Evolution of Programming Languages • Machine Languages • Assembly Languages • High-Level Languages • Fourth-Generation Languages
  • 3. Machine Languages • The native language of the hardware • Patterns of binary bits • Machine specific, is non-portable – is essentially the microcode of the processor
  • 4. Assembly Languages • Replace the pattern of binary bits with – mnemonics for the commands – variable names for memory locations • Essentially a one-to-one mapping of the machine language • Still machine specific, is non-portable
  • 5. High-Level Languages • Represents multiple machine-level statements with single statements • Easier to learn and use • Not machine specific, is portable
  • 6. An Example Machine Code Assembly Code High-Level Code in Hex 27BB0001 ldah gp, main main() 23BD8050 lda gp, main { 23DEFFF0 lda sp, -16(sp) int a, b, c; A61D8018 ldq r16, 8(gp) a = 3; A77D8010 ldq r27, printf b = 4; 47E0F411 mov 7, r17 c = a + b; B75E0000 stq r26, (sp) printf(“n%dn”, c); 6B5B4000 jsr r26, printf } 27BA0001 ldah gp, main A75E0000 ldq r26, (sp) 23BD8050 lda gp, main 47FF0400 clr r0 23DE0010 lda sp, 16(sp) 6BFA8001 ret r26
  • 7. Move from Language to Language • Computers only understand machine language. • Use an ASSEMBLER to convert a program written in assembly language to machine language. • Use a COMPILER to convert a program written in a high-level language to machine language.
  • 8. Executable Code • Program code which is in machine language and can be run (executed) by the computer • Is hardware dependent you can’t run it on just any machine • On PCs PC usually have an EXE or a COM extension
  • 9. Object Code • Program code which is in machine language but which is not ready to be run (i.e. it is a partial program). • Is hardware dependent. • On PCs usually has an OBJ extension. • Not commonly used by end-users.
  • 10. Source Code • Program code which is written in a high- level language. • Cannot be run by the computer. • Is usually a text file. • File name extension usually reflects the high-level language – BASIC - BAS extension – Pascal - PAS extension
  • 11. Compiler & Files Object Code Executable Code Source Code Compiler Linker Object Code Library Error Messages Program Listing
  • 12. Dynamic Link Libraries • Some Window programs use “run-time” linking and and require the presence of dynamic link library files which have a DLL extension. • DLL files ideally contain code which would be used by a number of programs.
  • 13. Object Libraries & DLLs • Both contain “commonly” used code. • With object libraries all the code is included in the executable file at compile time so: – programming effort is saved – no space saving is realized, executables which use common code have their own copy of the library code
  • 14. Object Libraries & DLLs • With DLLs the code is “fetched” from the DLL file at “run time” so: – programming effort is saved – space savings “may” be realized – the more executables that use the library code the greater the savings – typically only a small part of the library code is used
  • 15. Common HLLs • FORTRAN • COBOL • BASIC • Pascal • C • C++ • PL/1 • Ada • JAVA • LISP • Prolog
  • 16. Fourth Generation Languages • First three generations focused on describing “HOW TO DO” a task. • 4GLs focus on describing “WHAT TO ACCOMPLISH” • The fourth generation language compiler must be able to translate the “what to accomplish” description into a machine level “how to” set of instructions.
  • 17. Categories of 4GLs • Query languages • Report generators • Graphics languages • Application generators • Very high-level programming languages • Application software packages • Microcomputer tools
  • 18. Categories of Software • System Software – Operating Systems (OS) – Language Translators – Utility Programs • Application Software
  • 19. Operating Systems • It is the job of the operating system to manage the computers resources and control the execution of programs. • Computer resources include – memory – device drivers for peripheral devices • The OS is the interface between the hardware and the user/application program.
  • 20. Layers of interaction Hardware System Software Application Software Users
  • 21. Operating Systems • OSs run the full spectrum from – single program-single user, to – multitasking, multi-user, with virtual memory • The OS decides which program runs and for how long. • The OS improves throughput by skipping over processes that are waiting for I/O.
  • 22. Common Operating Systems • CP/M • DOS • Windows 3.1 • Windows 95 • Windows NT • OS/2 • System 7 • Mac OSX • Linux • UNIX • VMS • VM/CMS
  • 23. More RAM needed! • Newer OSs extend the capabilities of desktop computers but require more RAM • Windows 3.0 - 1MB (std),2MB (real) • Windows 95 - 8MB recommended • Windows NT 4.2 - 16MB (32 rec.) • Windows 2000 - 64MB min. • Windows XP - 128MB rec.(64MB min) • Windows Vista - 1GB rec. (512MB min)

Editor's Notes

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 30
  19. 25
  20. 26
  21. 27
  22. 28
  23. 29