1 Why Computer Languages? Compute are stupid. –They do not “understand” things. –They have to be told very precisely what to do. Natural language are ambiguous.

Slides:



Advertisements
Similar presentations
C++ Introduction.
Advertisements

Stack Frames: Using LINK. CEG 320/5208: Stack frames and LINK2 Assembling source code One source file: –Use ORG statements for data and code –Assemble.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
Introduction to a Programming Environment
Introduction to Programming (in C++) Introduction Jordi Cortadella, Ricard Gavaldà, Fernando Orejas Dept. of Computer Science, UPC.
CEG 320/520: Computer Organization and Assembly Language Programming1 Assembly Language Programming Assembler Directives and The Symbol Table.
Introduction to FORTRAN-90 University of Liverpool course.
The College of Saint Rose CIS 433 – Programming Languages David Goldschmidt, Ph.D. from Concepts of Programming Languages, 9th edition by Robert W. Sebesta,
COP4020 Programming Languages
Programming Language Rico Yu. Levels of Programming Languages 1.Low level languages 2.High level languages.
Computer Programming Basics Assistant Professor Jeon, Seokhee Assistant Professor Department of Computer Engineering, Kyung Hee University, Korea.
CSC 338: Compiler design and implementation
1 INTRODUCTION TO COMPUTER SCIENCE CONCEPTS AND PROGRAMMING.
computer
National Diploma Unit 4 Introduction to Software Development Introduction to Programming Languages.
Lecture 11: 10/1/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
CSE 3341 Principles of Programming Languages Neelam Soundarajan Computer Sc. & Eng. Dreese Labs 579
Introduction to Language Processing Technology Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
Software Development Programming Languages and Data Organization.
Language Translation A programming language processor is any system that manipulates programs expressed in a PL A source program in some source language.
6. Program Translation CS100: The World of Computing John Dougherty Haverford College.
1 3. Computing System Fundamentals 3.1 Language Translators.
Compiler Design Introduction 1. 2 Course Outline Introduction to Compiling Lexical Analysis Syntax Analysis –Context Free Grammars –Top-Down Parsing –Bottom-Up.
Semantics (1).
CS 111 – Nov. 5 Sorting –Selection and Bubble √ –insertion: place next element in correct place by shifting over other ones to make space –Merge: Repeatedly.
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
Programming Languages
Cs7100 (Prasad)L2SpecIntro1 Motivation for Language Specification.
Some Computer Science Conceptual Background Material Doug Hogan This version for UIC Spring 2016 CS 107.
Textbook C for Scientists and Engineers © Prentice Hall 1997 Available at NUS CO-OP at S$35.10.
Programming in C++ History of Programming 1st Generation –Machine Language 2nd Generation –Assembly Language 3rd Generation.
Tuesday, 1 st of Aban 1 st TA Session.  Let’s Meet:  I’m Aideen NasiriShargh, a 83er of CE, a C(++) Lover!  You’re 86ers of EE!  You’re supposed to.
What is a compiler? –A program that reads a program written in one language (source language) and translates it into an equivalent program in another language.
4 1 Computer Software Ch.2-A,B,C; Ch.15-D,E FALL 2000 Rob Wolfe.
Programming Language Design Issues Programming Languages – Principles and Practice by Kenneth C Louden.
Computer Science 101 For Statement. For-Statement The For-Statement is a loop statement that is especially convenient for loops that are to be executed.
ICS312 Introduction to Compilers Set 23. What is a Compiler? A compiler is software (a program) that translates a high-level programming language to machine.
The Big Picture. My Story  Wrote great programs  Didn’t understand how they worked.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
GROUP 2 NAME :  AZMYLL BIN ARSHAD  (18DNS14F2014)  MARYAM JAMILAH BINTI RAHIM  (18ENS14F2004)  SURAYA BINTI MOHAMAD  (18DNS14F2005)  MUHAMMAD SALEH.
Software Engineering Algorithms, Compilers, & Lifecycle.
Chapter 2- Visual Basic Schneider1 Programming Languages: Machine Language Assembly Language High level Language.
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.
Prof. I. J. Chung Data Structure #1 Professor I. J. Chung.
Programming Languages and Data Organization
Basic Concepts: computer, program, programming …
Algorithms, Part 1 of 3 Topics Definition of an Algorithm
Language Translation Compilation vs. interpretation.
Chapter 3 – Describing Syntax
Algorithm and Ambiguity
Algorithms I: An Introduction to Algorithms
Entry Ticket: High and Low Level Languages
جامعة البحر الاحمر كلية العلوم التطبيقية قسم الفيزياء التطبيقية الفصل الداسي الثاني IIالمقرر: حاسوب د. خالد عثمان العالم.
Language is a medium of communication.
2008/09/17: Lecture 4 CMSC 104, Section 0101 John Y. Park
Computer Programming Machine and Assembly.
High Level Programming Languages
البرمجة بلغة الفيجول بيسك ستوديو
Compilers B V Sai Aravind (11CS10008).
جامعة البحر الاحمر كلية العلوم التطبيقية قسمي الحاسوب وتقنية المعلومات الفصل الداسي الثاني المقرر: اساليب برمجة 1 محاضرة رقم 1 د. خالد عثمان العالم.
September 13th Grammars.
Algorithms, Part 1 of 3 Topics Definition of an Algorithm
Pass Structure of Assembler
Motivation for Language Specification
Beyond Base 10: Non-decimal Based Number Systems
Motivation for Language Specification
LANGUAGE EDUCATION.
Algorithms, Part 1 of 3 Topics Definition of an Algorithm
Presentation transcript:

1 Why Computer Languages? Compute are stupid. –They do not “understand” things. –They have to be told very precisely what to do. Natural language are ambiguous. –“College Station’s largest (quality (free) newspaper)”.

2 Programming language are designed to be unambiguous. –They are defined precisely, by syntax and semantics. –The meaning of each program is defined precisely. Associativity is defined, e.g., means (2-3)-4. Priority of Operators is defined, e.g., 2+3*4 means 2+(3*4).

3 High-Level Pascal Pgm Program Example: const x = 12; y = 30; var z: integer; begin z := x + y; end.

4 Assembly Program EXAMPLE CSECT Balr 12, 0 Using Base 12 Base L 2, X A 2, Y ST 2, Z BCR 15, 14 X DC F ’12’ Y DC F ’30’ Z DS F END CSECT

5 Machine Code( Hexidecimal) 05C0 Balr 12, C00E L 2, X 5A20 C012 A 2, Y 5020 C016 etc. ST 2, Z 07FE BCR 15, C X DC F ’12’ E Y DC F ’30’ Z DS F END EXAMPLE