CS 178: Programming with Multimedia Objects Aditya P. Mathur Professor of Computer Sciences Purdue University, West Lafayette August 25, 2004 Last update:

Slides:



Advertisements
Similar presentations
Dr. Ken Hoganson, © August 2014 Programming in R COURSE NOTES 2 Hoganson Language Translation.
Advertisements

Introduction to Computers and Programming - Class 1 1 Introduction to Computers and Programming Professor Avi Rosenfeld.
CS 178: Programming with Multimedia Objects Aditya P. Mathur Professor of Computer Sciences Purdue University, West Lafayette Sept 9, 2004 Last update:
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
1 Fall 2008ACS-1903 Chapter 1 Topics Java History Java Programs Why Program? Computer Systems: Hardware and Software Programming Languages What Is a Program.
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
1 Programming Languages b Each type of CPU has its own specific machine language b But, writing programs in machine languages is cumbersome (too detailed)
CS 110 Intro to Computer Science I Sami Rollins Fall 2006.
CS 178: Programming with Multimedia Objects Aditya P. Mathur Professor of Computer Sciences Purdue University, West Lafayette Sept 20, 2004 Last update:
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
1 CS150 Introduction to Computer Science 1 Professor: Chadd Williams
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
Computers & Logic An Overview. Hardware Hardware is the equipment, or the devices, associated with a computer. For a computer to be useful, however, it.
COMP Computer Basics Yi Hong May 13, 2015.
IB Computer Science II Paul Bui
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
CSC 110 A 1 CSC 110 Introduction to Python [Reading: chapter 1]
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Chapter 1 An Overview of Computers and Programming Languages.
1 Intro to Computer Science I Chapter 1 Introduction to Computation Algorithms, Processors, and Programs.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
General Topics Digital Basics Instructions & Programs.
CISC105 General Computer Science Class 1 – 6/5/2006.
Introduction to the Java Virtual Machine 井民全. JVM (Java Virtual Machine) the environment in which the java programs execute The specification define an.
Chapter 1 Introduction. Goal to learn about computers and programming to compile and run your first Java program to recognize compile-time and run-time.
aMichael Fung, CS&E, The Chinese University of HK1 Hands-on Introduction to JAVA Introduction to Java.
Introduction to Computer Systems and the Java Programming Language.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
Java means Coffee Java Coffee Beans The name “JAVA” was taken from a cup of coffee.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1 Overview 1.1 Computer Systems 1.2 Programming and Problem Solving.
CHAPTER 3 GC Java Fundamentals. 2 BASICS OF JAVA ENVIRONMENT  The environment  The language  Java applications programming Interface API  Various.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
Getting started with Programming using IDE. JAVA JAVA IS A PROGRAMMING LANGUAGE AND A PLATFORM. IT CAN BE USED TO DELIVER AND RUN HIGHLY INTERACTIVE DYNAMIC.
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
INM205 Object Oriented Programming in JAVA Dr. Michael Casey Department of Computing.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
1 Chapter 1 Programming Languages Evolution of Programming Languages To run a Java program: Java instructions need to be translated into an intermediate.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Analysis of Programming Languages (2). 2 LANGUAGE DESIGN CONSTRAINTS  Computer architecture  Technical setting  Standards  Legacy systems.
By: Cheryl Mok & Sarah Tan. Java is partially interpreted. 1. Programmer writes a program in textual form 2. Runs the compiler, which converts the textual.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
CS 178: Programming with Multimedia Objects Aditya P. Mathur Professor of Computer Sciences Purdue University, West Lafayette August 27, 2004 Last update:
Chapter 1 Introduction. Components of a Computer CPU (central processing unit) Executing instructions –Carrying out arithmetic and logical operations.
Software Development Introduction
Getting Started With Java September 22, Java Bytecode  Bytecode : is a highly optimized set of instructions designed to be executed by the Java.
Spring 2009 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 8.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
Chapter 1 An Overview of Computers and Programming Languages.
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
Machine Language Computer languages cannot be directly interpreted by the computer – they are not in binary. All commands need to be translated into binary.
Basic Concepts: computer, program, programming …
Java Programming: From the Ground Up
Lecture 1: Introduction to JAVA
Topic: Difference b/w JDK, JRE, JIT, JVM
Introduction
Introduction to Programming
Java programming lecture one
Assembler, Compiler, Interpreter
Computer Electronic device Accepts data - input
Mobile Development Workshop
Computer Electronic device Accepts data - input
Introduction CSC 111.
Computer Electronic device Accepts data - input
Assembler, Compiler, Interpreter
CSC 142 Introduction to Java [Reading: chapters 1 & 2]
Introduction to Computer Science
Presentation transcript:

CS 178: Programming with Multimedia Objects Aditya P. Mathur Professor of Computer Sciences Purdue University, West Lafayette August 25, 2004 Last update: August 23, 2004 Computer Organization, Compilation, and Eclipse

Course Introduction  Aditya P. Mathur Learning Objectives The compilation process What is a compiler? Eclipse

Course Introduction  Aditya P. Mathur Basic Computer Organization CPU|GPU|SPU Primary Storage Secondary Storage Input/Output Devices e.g. 512MB e.g. 60GB e.g. Athelon, R3000A e.g. Joystick, Display Cache CPU: Central Processing Unit GPU: Graphics Processing Unit SPU: Sound Processing Unit

Course Introduction  Aditya P. Mathur High Level-Low Level Languages A CPU|GPU|SPU in a computer understands instructions coded as only 1’s and 0’s. The language of 0’s and 1’s is a low level language known as machine language. Java allows the coding of instructions using keywords from English, e.g. applet, class, and String. Java is a high-level language. How does a CPU/GPU/SPU understand instructions coded in Java?

Course Introduction  Aditya P. Mathur Language Translation Java Program Java Compiler Byte Code Java Virtual machine (JVM) Instructions executed by the CPU Output JVM interprets Java byte code instructions. JVM instructions are executed by the CPU. Different from machine (CPU) code

Course Introduction  Aditya P. Mathur Platform Independence Byte Code Java Virtual machine Java Virtual machine Java Virtual machine WindowsUnixOS X Others

Course Introduction  Aditya P. Mathur Structure of a Java Program Java Program Class One or more classes Method Each class contains data and methods. Data Method Data Method Data Instructions

Course Introduction  Aditya P. Mathur Sample Java Programs and Eclipse Let us examine a few Java programs..small and not so small!