Introduction Compiler is a Translator Fortran C Java

  • Slides: 7
Download presentation
Introduction • Compiler is a Translator. • Fortran • C++ • Java • Text

Introduction • Compiler is a Translator. • Fortran • C++ • Java • Text processing language • HTML/XML • Command & Scripting Languages • Natural language • Domain specific languages 9/17/2020 • Machine code • Virtual machine code • Transformed source code • Augmented source code • Low-level commands • Semantic components • Another language S. Suseela Dept. of CSE PMU, Vallam 1

Objective Cont… ü A compiler is a program takes a program written in a

Objective Cont… ü A compiler is a program takes a program written in a source language and translates it into an equivalent program in a target language. Source Program Compiler Target Program Error Message 9/17/2020 S. Suseela Dept. of CSE PMU, Vallam 2

Outline Compilers are everywhere! üMany applications for compiler technology üParsers for HTML in web

Outline Compilers are everywhere! üMany applications for compiler technology üParsers for HTML in web browser üInterpreters for Java. Script/flash üMachine code generation for high level languages üSoftware testing üProgram optimization 9/17/2020 S. Suseela Dept. of CSE PMU, Vallam 3

Why Compiler Design? Compilers are everywhere! üMalicious code detection üDesign of new computer architectures

Why Compiler Design? Compilers are everywhere! üMalicious code detection üDesign of new computer architectures üCompiler-in-the-loop hardware development üHardware synthesis: VHDL to RTL translation üCompiled simulation üUsed to simulate designs written in VHDL 9/17/2020 S. Suseela Dept. of CSE PMU, Vallam 4

Why Compiler Design? Compilers are everywhere! ü Language processing is an important component of

Why Compiler Design? Compilers are everywhere! ü Language processing is an important component of programming ü A large number of systems software and application programs require structured input ü Operating Systems (command line processing) ü Databases (Query language processing) ü Type setting systems like Latex, Nroff, Troff, Equation editors, M 4 9/17/2020 S. Suseela Dept. of CSE PMU, Vallam 5

Example Many common applications require structured input during development phase (design of banner programme

Example Many common applications require structured input during development phase (design of banner programme of Unix) xxxxxxxxx xxx xxxxxxxxx 9/17/2020 9 x 9 x 9 x 3 b 3 x 3 b 3 x 9 x 9 x 9 x S. Suseela Dept. of CSE 3 9 x 6 3 b 3 x 3 9 x PMU, Vallam 6

Assessment strategy • List few application of Compilers. 9/17/2020 S. Suseela Dept. of CSE

Assessment strategy • List few application of Compilers. 9/17/2020 S. Suseela Dept. of CSE PMU, Vallam 7