What is a cross compiler? A cross compiler is a compiler capable of creating executable code for a platform other than the one on which the cross compiler.

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

OO Programming in Java Objectives for today: Overriding the toString() method Polymorphism & Dynamic Binding Interfaces Packages and Class Path.
L2:CSC © Dr. Basheer M. Nasef Lecture #2 By Dr. Basheer M. Nasef.
1 Pass Compiler 1. 1.Introduction 1.1 Types of compilers 2.Stages of 1 Pass Compiler 2.1 Lexical analysis 2.2. syntactical analyzer 2.3. Code generation.
Overloading methods review When is the return statement required? What do the following method headers tell us? public static int max (int a, int b)
Datalogi A 5: 6/10. while Loops Executes a block of code repeatedly A condition controls how often the loop is executed while (condition) statement; Most.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 17 - The Preprocessor Outline 17.1Introduction 17.2The #include Preprocessor Directive 17.3The.
1HW13 Modify ThreadSafeBankAccount2 to use an assertion that checks a lock is released. Learn how to compile and run Java code with assertions. Define.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 13 - The Preprocessor Outline 13.1Introduction.
 2000 Prentice Hall, Inc. All rights reserved. Chapter 13 - The Preprocessor Outline 13.1Introduction 13.2The #include Preprocessor Directive 13.3The.
Compiler design Computer Science Rensselaer Polytechnic Lecture 1.
Testing a program Remove syntax and link errors: Look at compiler comments where errors occurred and check program around these lines Run time errors:
Introduction to C. A Brief History Created by Dennis Ritchie at AT&T Labs in 1972 Originally created to design and support the Unix operating system.
 2007 Pearson Education, Inc. All rights reserved C Preprocessor.
Java: Chapter 1 Computer Systems Computer Programming II Aug
Introduction to Java Appendix A. Appendix A: Introduction to Java2 Chapter Objectives To understand the essentials of object-oriented programming in Java.
Introduction to C Programming. A Brief History u Created by Dennis Ritchie at AT&T Labs in 1972 u Originally created to design and support the Unix operating.
Windows Programming Lecture 05. Preprocessor Preprocessor Directives Preprocessor directives are instructions for compiler.
 2000 Prentice Hall, Inc. All rights reserved. Chapter 12 - The Preprocessor Directives (Macros)
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
Java: Chapter 1 Computer Systems Computer Programming II.
Java Lecture 16: Dolores Zage. WWW n Was a method for distributing passive information n added forms and image maps n interaction was only a new way to.
C++ Basics Structure of a Program. C++ Source Code Plain text file Typical file extension .CPP Must compile the C++ source code without errors before.
Java Introduction to JNI Prepared by Humaira Siddiqui.
CSC204 – Programming I Lecture 4 August 28, 2002.
JAVA Tokens. Introduction A token is an individual element in a program. More than one token can appear in a single line separated by white spaces.
Java Quiz Bowl A fun review of the Java you should know from CMPT 201 If you don’t know the answers - this week is for you to study up!
CHAPTER 3 GC Java Fundamentals. 2 BASICS OF JAVA ENVIRONMENT  The environment  The language  Java applications programming Interface API  Various.
习 题 4.23 编写一个 applet ,读取一个矩形的边长,然后 用在 paint 方法中使用 drawString 方法画出用星组成 的空心矩形。程序应能画出边长从 1 到 20 的任何矩 形。
Module 6: Debugging a Windows CE Image.  Overview Debug Zones IDE Debug Setup IDE Debug Commands Platform Builder Integrated Kernel Debugger Other Debugging.
1.  10% Assignments/ class participation  10% Pop Quizzes  05% Attendance  25% Mid Term  50% Final Term 2.
COP4020 Programming Languages Names, Scopes, and Bindings Prof. Xin Yuan.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
OOP in Java : © W. Milner 2005 : Slide 1 Java and OOP Part 2 – Classes and objects.
1 Original Source : and Problem and Problem Solving.ppt.
CMSC 150 PROGRAM EXECUTION CS 150: Wed 1 Feb 2012.
1 Methods Introduction to Methods Passing Arguments to a Method More About Local Variables Returning a Value from a Method Problem Solving with Methods.
CS101: Introduction to Computer Science Slides adapted from Sedgewick and Wayne Copyright © Your First Java.
A compiler is a computer program that translate written code (source code) into another computer language Associated with high level languages A well.
Overview of Java CSCI 392 Day One. Running C code vs Java code C Source Code C Compiler Object File (machine code) Library Files Linker Executable File.
Compiler Construction By: Muhammad Nadeem Edited By: M. Bilal Qureshi.
 2003 Prentice Hall, Inc. All rights reserved. 1 IS 0020 Program Design and Software Tools Preprocessor Midterm Review Lecture 7 Feb 17, 2004.
CreatingClasses-SlideShow-part31 Creating Classes part 3 Barb Ericson Georgia Institute of Technology Dec 2009.
You will need Dev C++ to help you with this project. If you do not already have this programming tool on your device you can visit
Ajmer Singh PGT(IP) Programming Fundamentals. Ajmer Singh PGT(IP) Java Character Set Character set is a set of valid characters that a language can recognize.
1 Compiler & its Phases Krishan Kumar Asstt. Prof. (CSE) BPRCE, Gohana.
Java FilesOops - Mistake Java lingoSyntax
THE PREPROCESSOR
The Preprocessor Directives Introduction Preprocessing – Occurs before program compiled Inclusion of external files Definition of symbolic constants.
 2000 Prentice Hall, Inc. All rights reserved. Chapter 13 - The Preprocessor Outline 13.1Introduction 13.2The #include Preprocessor Directive 13.3The.
LECTURE 3 Compiler Phases. COMPILER PHASES Compilation of a program proceeds through a fixed series of phases.  Each phase uses an (intermediate) form.
Overview of Compilation Prepared by Manuel E. Bermúdez, Ph.D. Associate Professor University of Florida Programming Language Principles Lecture 2.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Introduction to 1. What is Java ? Sun Microsystems Java is a programming language and computing platform first released by Sun Microsystems in The.
Objective of the course Understanding the fundamentals of the compilation technique Assist you in writing you own compiler (or any part of compiler)
Memory Management in Java Mr. Gerb Computer Science 4.
Defining Your Own Classes II
Blank Jeopardy Blank blank
13 C Preprocessor.
Why don’t programmers have to program in machine code?
Types CSCE 314 Spring 2016.
Introduction to.
Chapter 13 - The Preprocessor
Programming with ANSI C ++
An Introduction to Java – Part I, language basics
Programming in Java Assertion.
Govt. Polytechnic,Dhangar
Sridhar Narayan Java Basics Sridhar Narayan
Anatomy of a Java Program
Presentation transcript:

What is a cross compiler? A cross compiler is a compiler capable of creating executable code for a platform other than the one on which the cross compiler is run.

A language cross compiler is a compiler capable of creating target code for a language other than the one with which the source code is written. What is a Language cross compiler?

... #ifdef __TURBOC__ #endif... strcmpi(st1,st2); strncmpi(st1,st2,n); stricmp(st1,st2);

Contains the file size, no. of lines and the file name that is being compiled. This button remains disabled if there is no error in the source file The progress bar depicting the cross compilation process.

The log file button is enabled due to error in source file The different errors are being displayed that have been found in the source file, Bivas5.C

The equivalent Java code, staring with class A Optimized code, the target code has no blank spaces

Calling the cross-compiler executable from here The argument File Name given here Hiding the execution from the viewer

1. FOR EVERY TOKEN DO 2. CHECK FOR PROPER MAPPING, if possible 3. IF MAP PRESENT CONVERT (and do processing) 4. CHECK FOR VALIDITY OF TOKEN 5. IF VALID, WRITE THE TOKEN 6. END

1. FOR EVERY TOKEN DO 2. CHECK FOR PROPER MAPPING, if possible 3. IF MAP PRESENT CONVERT (and do processing) 4. CHECK FOR VALIDITY OF TOKEN 5. IF VALID, WRITE THE TOKEN 6. END sin(x) Mapping

1. FOR EVERY TOKEN DO 2. CHECK FOR PROPER MAPPING, if possible 3. IF MAP PRESENT CONVERT (and do processing). GOTO STEP 1 4. CHECK FOR VALIDITY OF TOKEN 5. IF VALID, WRITE THE TOKEN 6. END sin(x) Mapping Math.sin

1. FOR EVERY TOKEN DO 2. CHECK FOR PROPER MAPPING, if possible 3. IF MAP PRESENT CONVERT (and do processing). GOTO STEP 1 4. CHECK FOR VALIDITY OF TOKEN 5. IF VALID, WRITE THE TOKEN 6. END sin(x) Mapping Math.sin

1. FOR EVERY TOKEN DO 2. CHECK FOR PROPER MAPPING, if possible 3. IF MAP PRESENT CONVERT (and do processing). GOTO STEP 1 4. CHECK FOR VALIDITY OF TOKEN 5. IF VALID, WRITE THE TOKEN 6. END sin(x) Mapping Math.sin

1. FOR EVERY TOKEN DO 2. CHECK FOR PROPER MAPPING, if possible 3. IF MAP PRESENT CONVERT (and do processing). GOTO STEP 1 4. CHECK FOR VALIDITY OF TOKEN 5. IF VALID, WRITE THE TOKEN 6. END sin(x) Mapping Math.sin Validity?

1. FOR EVERY TOKEN DO 2. CHECK FOR PROPER MAPPING, if possible 3. IF MAP PRESENT CONVERT (and do processing). GOTO STEP 1 4. CHECK FOR VALIDITY OF TOKEN 5. IF VALID, WRITE THE TOKEN 6. END sin(x) Mapping Math.sin( Validity?

strstr(s,s2) public static String strstr(String s, String s2) { int i = s.indexOf(s2); if(i == -1) return null; else return s.substring(i); } strlen(s1)s1.length()

PROF. MADHULINA SARKAR PROF. ASIT KUMAR SHIROMANI PROF. AMIYA HALDAR DR. SUBARNA BHATTACHARYA