8.2 Characteristics of a High Level Programming Language

Slides:



Advertisements
Similar presentations
Assembly Language – 1.
Advertisements

Instruction Set Design
COP 3402 Systems Programming
Princess Sumaya Univ. Computer Engineering Dept. Chapter 2: IT Students.
Fall EE 333 Lillevik 333f06-l4 University of Portland School of Engineering Computer Organization Lecture 4 Assembly language programming ALU and.
MIPS Assembly Language Programming
CSC 3650 Introduction to Computer Architecture Time: 3:30 to 6:30Meeting Days: WLocation: Oxendine 1237B Textbook: Essentials of Computer Architecture,
Programming Languages Marjan Sirjani 2 2. Language Design Issues Design to Run efficiently : early languages Easy to write correctly : new languages.
10.2 Characteristics of Computer Memory RAM provides random access Most RAM is volatile.
Introduction to C Programming CE Lecture 1 Introduction to C.
From Essentials of Computer Architecture by Douglas E. Comer. ISBN © 2005 Pearson Education, Inc. All rights reserved.
6.1 Introduction Two details related to instructions –The way instructions are specified –The ways that operands can be specified.
5.2 Mathematical Power, Convenience, and Cost The set of operations represents a tradeoff among the cost of the hardware, the convenience for a programmer,
The Assembly Language Level
From Essentials of Computer Architecture by Douglas E. Comer. ISBN © 2005 Pearson Education, Inc. All rights reserved. 7.2 A Central Processor.
Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved The Assembly Language Level.
1 Chapter 4 Macro Processors Professor Gwan-Hwan Hwang Dept. Computer Science and Information Engineering National Taiwan Normal University 9/17/2009.
ECE 265 – LECTURE 9 PROGRAM DESIGN 8/12/ ECE265.
Assembly & Machine Languages
CCSA 221 Programming in C CHAPTER 2 SOME FUNDAMENTALS 1 ALHANOUF ALAMR.
Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Introduction to Microprossor.
Chapter 1: Data Representation Dr Mohamed Menacer Taibah University
Chapter 6 Programming Languages. © 2005 Pearson Addison-Wesley. All rights reserved 6-2 Chapter 6: Programming Languages 6.1 Historical Perspective 6.2.
Introduction to Computer Programming in c
School of Computer Science G51CSA 1 The Little Man Computer.
Ass. Prof. Dr Masri Ayob TK 6123 Lecture 13: Assembly Language Level (Level 4)
Computer Operations A computer is a programmable electronic device that can store, retrieve, and process data Data and instructions to manipulate the data.
1 Text Reference: Warford. 2 Computer Architecture: The design of those aspects of a computer which are visible to the programmer. Architecture Organization.
Indira Gandhi National Open University presents. A Video Lecture Course: Computer Platforms.
Assembly Language for x86 Processors 7th Edition Chapter 13: High-Level Language Interface (c) Pearson Education, All rights reserved. You may modify.
MIPS Processor Chapter 12 S. Dandamudi To be used with S. Dandamudi, “Introduction to Assembly Language Programming,” Second Edition, Springer,
Operand Addressing And Instruction Representation Cs355-Chapter 6.
1 12/4/1435 h Lecture 2 Programs and Programming Languages.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
Processor Types And Instruction sets Chapter- 5.
MIPS assembly syntax Home Assignment 3 Assigned. Deadline 2016 February 14, Sunday.
Processor Fundamentals Assembly Language. Learning Objectives Show understanding of the relationship between assembly language and machine code, including.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Skill Area 311 Part B. Lecture Overview Assembly Code Assembler Format of Assembly Code Advantages Assembly Code Disadvantages Assembly Code High-Level.
LECTURE 3 Translation. PROCESS MEMORY There are four general areas of memory in a process. The text area contains the instructions for the application.
1 Chapter 4 Macro Processors. 2 Introduction A macro instruction (abbreviated to macro) is simply a notational convenience for the programmer. A macro.
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
Computer Architecture. Instruction Set “The collection of different instructions that the processor can execute it”. Usually represented by assembly codes,
Macro Processor Design Options Recursive Macro Expansion General-Purpose Macro Processors Macro Processing within Language Translators.
Lecture 3 Translation.
CHAPTER NINE.
Assembler, Compiler, MIPS simulator
Computer Architecture Instruction Set Architecture
CSCI-235 Micro-Computer Applications
Assembly Language Ms. V.Anitha AP/CSE SCT
Microprocessor and Assembly Language
Chapter 3 Machine Language and Assembly Language.
Chapter 3 Machine Language and Assembly Language.
MIPS assembly syntax Comments
Overview Introduction General Register Organization Stack Organization
Super Quick Architecture Review
The Assembly Language Level
Computer Programming Machine and Assembly.
High Level Programming Languages
Assembler CASE Tool.
Introduction to Intel IA-32 and IA-64 Instruction Set Architectures
The University of Adelaide, School of Computer Science
The Assembly Language Level
Definition Copyright © 2013 Pearson Education, Inc.. All rights reserved.
Processor Fundamentals
Introduction to Microprocessor Programming
Chapter 6 Programming the basic computer
Computer Architecture and System Programming Laboratory
Algoritmos y Programacion
Presentation transcript:

8.2 Characteristics of a High Level Programming Language Programming languages Low level languages High level languages Many to one translation Hardware independence Application oriented General purpose Powerful abstraction

Characteristics of a Low Level Programming Language Low level languages One to one translation Hardware dependence System programming orientation Special purpose Few abstractions

8.4 Assembly language Many assembly languages exist, one for each processor. Despite differences, many assembly languages share the same fundamental structure. A programmer who understands the assembly programming paradigm can learn a new assembly language quickly

8.5 Assembly Language Syntax and Op-codes Statement format Op-code names there is no global agreement on op-code names even for basic operations Commenting conventions The assembly language often only defines a character that starts a comment

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

8.7 Register Names There is no universal standard for register references

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

8.8 Operand types An assembly language provides a syntatic form for each possible type that the processor supports

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

8.15 Assembly Code for Parameterized Procedure Invocation The details of argument passing vary widely among processors Uses a stack in memory Uses register windows Uses special purpose argument registers

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

8.18 Interaction between Assembly and High Level Languages The assembly program must follow the calling conventions that the high level language uses

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

8.20 Two Pass Assembler An assembler merely provides a one to one translation of each statement in the source program to the equivalent binary form

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

8.21 Assembly Language Macros To use a macro facility, a programmer adds two types of items: Macro definitions Macro expansions

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

From Essentials of Computer Architecture by Douglas E. Comer From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.