A LECTURE NOTE. Introduction to Programming languages.

Slides:



Advertisements
Similar presentations
Instruction Sets: Characteristics and Functions Addressing Modes
Advertisements

1 Lecture 3: Instruction Set Architecture ISA types, register usage, memory addressing, endian and alignment, quantitative evaluation.
10/9: Lecture Topics Starting a Program Exercise 3.2 from H+P Review of Assembly Language RISC vs. CISC.
Microprocessor and Microcontroller Fundamentals
Lab6 – Debug Assembly Language Lab
Chapter 2 : Number System
The Binary Machine Modern high-level programming languages are designed to make programming easier. On the other end, the low level, all modern digital.
The Analytical Engine Module 6 Program Translation.
Chapter 2: Impact of Machine Architectures What is the Relationship Between Programs, Programming Languages, and Computers.
CS 104 Introduction to Computer Science and Graphics Problems Software and Programming Language (2) Programming Languages 09/26/2008 Yang Song (Prepared.
Prof. B. I. Khodanpur HOD – Dept. of CSE R. V. College of Engineering
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#1) By Dr. Syed Noman.
1 Chapter-01 Introduction to Computers and C++ Programming.
Programming Languages Generations
Course Introduction C++ An Introduction to Computing.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
CPS120: Introduction to Computer Science
Summer 2014 Chapter 1: Basic Concepts. Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Chapter Overview Welcome to Assembly Language.
Assembly Language for x86 Processors 7th Edition
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
Machine Instruction Characteristics
Tranlators. Machine Language The lowest-level programming languageprogramming language Machine languages are the only languages understood by computers.languagescomputers.
IT253: Computer Organization Lecture 4: Instruction Set Architecture Tonga Institute of Higher Education.
Binary Arithmetic & Data representation
Cis303a_chapt03-2a.ppt Range Overflow Fixed length of bits to hold numeric data Can hold a maximum positive number (unsigned) X X X X X X X X X X X X X.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
Ass. Prof. Dr Masri Ayob TK 6123 Lecture 13: Assembly Language Level (Level 4)
PROGRAMMING LANGUAGES
1 Text Reference: Warford. 2 Computer Architecture: The design of those aspects of a computer which are visible to the programmer. Architecture Organization.
COMPUTER SCIENCE Data Representation and Machine Concepts Section 2.2 Instructor: Lin Chen Sept 2013.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
The Instruction Set Architecture. Hardware – Software boundary Java Program C Program Ada Program Compiler Instruction Set Architecture Microcode Hardware.
What is a program? A sequence of steps
CS 125 Lecture 3 Martin van Bommel. Overflow In 16-bit two’s complement, what happens if we add =
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Programming Languages
Programming Languages Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
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 Architecture. Instruction Set “The collection of different instructions that the processor can execute it”. Usually represented by assembly codes,
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
1 Chapter 1: Basic Concepts Assembly Language for Intel-Based Computers, 4th edition Kip R. Irvine 9/6/2003.
Component 1.6.
Assembler, Compiler, MIPS simulator
Microprocessor and Microcontroller Fundamentals
Microprocessor and Microcontroller Fundamentals
Assembly language.
Assembly Language for x86 Processors 6th Edition
Operating System Interface between a user and the computer hardware
CSCI-235 Micro-Computer Applications
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Microprocessor Systems Design I
Introduction to Programming
Computer System and Programming
Microprocessor Systems Design I
IPCOWALA INSTITUTE OF ENGINEERING & TECHNOLOGY-DHARMAJ
Chapter 3 Machine Language and Assembly Language.
Chapter 3 Machine Language and Assembly Language.
Overview Introduction General Register Organization Stack Organization
Number Systems.
MIPS Assembly.
TRANSLATORS AND IDEs Key Revision Points.
Translators & Facilities of Languages
Computer Organization and ASSEMBLY LANGUAGE
CISC AND RISC SYSTEM Based on instruction set, we broadly classify Computer/microprocessor/microcontroller into CISC and RISC. CISC SYSTEM: COMPLEX INSTRUCTION.
Processor Fundamentals
MARIE: An Introduction to a Simple Computer
Introduction to Microprocessor Programming
CPU Structure CPU must:
Programming Fundamentals Lecture #2 Overview of Computer Programming
Presentation transcript:

A LECTURE NOTE

Introduction to Programming languages

Machine Language

Low-Level Language

High-Level Language

Data Representation & Numbering Systems

Binary Numbering Systems

Octal Numbering Systems

Decimal Numbering Systems

Hexadecimal Numbering Systems

Types of encoding

American Standard Code for Information Interchange (ASCII)

Binary Coded Decimal (BCD)

Extended Binary Coded Decimal Interchange Code (EBCDIC)

Mode of data representation

Integer Representation

Floating Point Representation

Computer instruction set

Reduced Instruction Set Computer (RISC)

Complex Instruction Set Computer (CISC)

SECTION TWO

Registers

General Purpose Registers

Segment Registers

Special Purpose Registers

Machine Language

Low Level Language

High level Language

MACHINE LANGUAGE

It uses computer storage more efficiently

It takes less time to process in a computer than any other programming language

It is time consuming

It is very tedious to write

It is subject to human error

It is expensive in program preparation and debugging stages

LOW LEVEL LANGUAGE

An assembly language is a low-level language for programming computers. It implements a symbolic representation of the numeric machine codes and other constants needed to program a particular CPU architecture. This representation is usually defined by the hardware manufacturer, and is based on abbreviations (called mnemonics) that help the programmer remember individual instructions, registers, etc. An assembly language is thus specific to a certain physical or virtual computer architecture (as opposed to most high-level languages, which are usually portable).

A utility program called an assembler is used to translate assembly language statements into the target computer's machine code. The assembler performs a more or less isomorphic translation (a one-to-one mapping) from mnemonic statements into machine instructions and data. (This is in contrast with high-level languages, in which a single statement generally results in many machine instructions.)

Today, assembly language is used primarily for direct hardware manipulation, access to specialized processor instructions, or to address critical performance issues. The following section of an assembly language program also adds overtime to base pay and stores the result in gross pay:

Load basepay

Add overpay

Store grosspay

It is more efficient than machine language

Symbols make it easier to use than machine language

It may be useful for security reasons

It is defined for a particular processor

Assemblers are difficult to get

Although, low level language codes are clearer to humans, they are incomprehensible to computers until they are translated to machine language.

Compilers are easy to get

It is easier to use than any other programming language

It is easier to understand compared to any other programming language

It takes more time to process in a computer than any other programming language

THE BINARY NUMBERING SYSTEM