Programming Language Rico Yu. Levels of Programming Languages 1.Low level languages 2.High level languages.

Slides:



Advertisements
Similar presentations
CS105 INTRODUCTION TO COMPUTER CONCEPTS INTRO TO PROGRAMMING Instructor: Cuong (Charlie) Pham.
Advertisements

2 We need programming languages to communicate with a computer. The two broad classifications of programming languages are: Low-level and High- level.
Programming Creating programs that run on your PC
Overview of Programming Paradigms
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
Programming Languages Structure
Chapter 16 Programming and Languages: Telling the Computer What to Do.
CMP 131 Introduction to Computer Programming Violetta Cavalli-Sforza Week 1, Lab.
Development of Computer - Story of Steve. What is a computer A high intelligence machine A tool – make our life much convenient A very loyal servant Pretty.
CS 104 Introduction to Computer Science and Graphics Problems Software and Programming Language (2) Programming Languages 09/26/2008 Yang Song (Prepared.
SOFTWARE SYSTEMS SOFTWARE APPLICATIONS SOFTWARE PROGRAMMING LANGUAGES.
The CPU The Central Presentation Unit Language Levels Fetch execute cycle Processor speed.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
Introduction to Programming End Show. Resource Team R.P Ranjan-Lecturer, SPICTEC, Galle. W.M.A.S. Wijesekara-Centre manager,CRC Hali-Ela H.P.U.S Indra.
Programming Languages Lecture 12. What is Programming?  The process of telling the computer what to do  Also known as coding.
1 Chapter-01 Introduction to Computers and C++ Programming.
Programming Languages – Coding schemes used to write both systems and application software A programming language is an abstraction mechanism. It enables.
Introduction to Computer Programming itc-314
Introduction to Programming Language CS105 Programming Language First-generation: Machine language Second-generation: Assembly language Third-generation:
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
Slide 1 Standard Grade Computing Studies Systems Software.
Chapter 1. Introduction.
Tranlators. Machine Language The lowest-level programming languageprogramming language Machine languages are the only languages understood by computers.languagescomputers.
Evolution of Programming Languages Generations of PLs.
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
Copyright © 2007 Addison-Wesley. All rights reserved.1-1 Reasons for Studying Concepts of Programming Languages Increased ability to express ideas Improved.
The Teacher Computing Computer Languages [Computing]
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
CSC425 - Introduction To Computer Programming 1. 2 Generation Of Programming Languages A set of rules that telling a computer what to do. There are over.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
Chapter 0 Overview. Why you are here? Where will you go? What is this course for?
Evolution and History of Programming Languages 1.
PROGRAMMING LANGUAGES
1 3. Computing System Fundamentals 3.1 Language Translators.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
CS-303 Introduction to Programming
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
5.0 PROGRAMMING Duration: 10 weeks Prepared by Ong Lay Peng Copyright © 2007.
Machine Machine language is PL in which program instructions are written in strings of 0s and 1s.The computer circuitry is wired in a manner that it can.
Introduction to Computer Programming itc-314 Lecture 04.
Lecture-8 Introduction to computer languages.
Skill Area 311 Part B. Lecture Overview Assembly Code Assembler Format of Assembly Code Advantages Assembly Code Disadvantages Assembly Code High-Level.
Introduction to Computer Programming using Fortran 77.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Introduction to computer programming
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Programming Languages
Software Engineering Algorithms, Compilers, & Lifecycle.
Programming Languages Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Computer Software 1.
High-level language programming paradigms. Programming languages come in many forms or 'paradigms'. Each form of language offers advantages over other.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
Computer Language
Evolution and History of Programming Languages
Computer Languages [Computing] Computing.
Why don’t programmers have to program in machine code?
Why study programming languages?
Programming Languages
Introduction to programming
Operating System Interface between a user and the computer hardware
PROGRAMMING LANGUAGES
Programming Language Hierarchy, Phases of a Java Program
CSCI-235 Micro-Computer Applications
Programming Languages and Translators
Translators & Facilities of Languages
Lecture 8 Programming Paradigm & Languages. Programming Languages The process of telling the computer what to do Also known as coding.
Presentation transcript:

Programming Language Rico Yu

Levels of Programming Languages 1.Low level languages 2.High level languages

Low level languages  Machine language Machine language Directly executable by CPU  Assembly language Machine dependent Mnemonic codes ( 易記碼 )  each opcode Need to translate to machine code first – not directly executable

High level language  Machine independent and portable  Human like language  3GL C, Fortran, COBOL, BASIC, PASCAL, etc.  4GL SQL (Structured Query Language)

3GL LanguageFull nameApplication COBOL Common Business Oriented Language Commercial Prolog Programming in logic Artificial Intelligence ( 人工 智能 ) expert systems LISP List Processing BASIC Beginner's All- purpose Symbolic Instruction Code General purpose FORTRAN Formula TranslatorScientific

4GL  e.g. SQL command select * from student order by class, class_no; - display all the student records in the database table “student” in ascending order of class and class_no.

Advantages of high-level language over low-level language Advantages of HIGH level language Reasons 1. More effectiveDesigned to solve problem 2. Easier to learn, write, read and modify Instructions are English-like format 3. Programs are shorter in length One high-level language statement take the place of many machine instructions 4. Portable (can use in different computers with little modification) Machine-independent

Advantages of low-level language over high-level language Advantages of LOW level language Reasons 1. More efficientHardware features, like bus width, is fully made use of 2. Require smaller memory space to run Fewer low-level instructions are needed to do the same task (no redundant instructions produced by a translator) 3. Precise control of hardware Some low-level instructions are designed specifically for controlling the hardware at low level

Translators  Is a software  Converts the source code into machine instructions  Syntax errors of a program are detected in the translation phase  Three types of translators: assembler, compiler, interpreter

Assembler  Produces one machine instruction for each assembly language statement  Translates the whole source program before execution takes place

Compiler  Converts the whole source program before execution takes place  The computer needs the object program only

Interpreter  No object program is produced  The translated machine instructions CANNOT be reused  Interpreter must be present

Comparison of Translators AssemblerCompilerInterpreter Translate low- level language into machine language Translate high-level language into machine language A new file, called object program, is created No new file is produced Programs run fasterPrograms run slower

Comparison of Translators AssemblerCompilerInterpreter Translate the whole source programTranslate and execute a statement at a time Less convenient for programmer. Every change in the source program needs compilation Convenient for programmer Programmer can hide the source program The source program must be present Translator is not necessary at run-timeTranslator is necessary at run-time

Machine instruction Op. codeOperand Op. code is the operation to be performed. Operand is the data to be acted on.