CS 178: - PowerPoint PPT Presentation

About This Presentation
Title:

CS 178:

Description:

Last update: August 23, 2004. Computer Organization, Compilation, and Eclipse ... JVM interprets Java byte code instructions. JVM instructions are executed by the CPU. ... – PowerPoint PPT presentation

Number of Views:14
Avg rating:3.0/5.0
Slides: 9
Provided by: ValuedGate2215
Category:
Tags: interprets

less

Transcript and Presenter's Notes

Title: CS 178:


1
Computer Organization, Compilation, and Eclipse
  • 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
2
Learning Objectives
  • What is a compiler?
  • The compilation process
  • Eclipse

3
Basic Computer Organization
4
High Level-Low Level Languages
  • A CPUGPUSPU in a computer understands
    instructions coded as only 1s and 0s.
  • The language of 0s and 1s 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?
5
Language Translation
Java Program
JVM interprets Java byte code instructions. JVM
instructions are executed by the CPU.
6
Platform Independence
Byte Code
Java Virtual machine
Java Virtual machine
Java Virtual machine
Others
Windows
Unix
OS X
7
Structure of a Java Program
Java Program
Class
One or more classes
Class
Class
.......
Data
Data
Data
Method
Method
Method
Method
Method
Method
Method
Method
Method
Each class contains data and methods.
Data
Instructions
8
Sample Java Programs and Eclipse
Let us examine a few Java programs..small and not
so small!
Write a Comment
User Comments (0)
About PowerShow.com