{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

01-intro - CS 502 Compilers Principles and Practice...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 502: Compilers: Principles and Practice Important facts: Name: Dr. Tony Hosking Email: [email protected] Office: LWSN 3154L Basis for grades: 20% midterm 30% final 40% project 10% homeworks Copyright c 2007 by Antony L. Hosking. Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and full citation on the first page. To copy otherwise, to republish, to post on servers, or to redistribute to lists, requires prior specific permission and/or fee. Request permission to publish from [email protected] CS502 Introduction 1 Things to do make sure you have a working XINU account review Java development tools find http://www.cs.purdue.edu/ hosking/502 CS502 Introduction 2 Compilers What is a compiler? a program that translates an executable program in one language into an executable program in another language we expect the program produced by the compiler to be better, in some way, than the original What is an interpreter? a program that reads an executable program and produces the results of running that program usually, this involves executing the source program in some fashion This course deals mainly with compilers Many of the same issues arise in interpreters CS502 Introduction 3 Motivation Why study compiler construction? Why build compilers? Why attend class? CS502 Introduction 4
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Interest Compiler construction is a microcosm of computer science artificial intelligence greedy algorithms, learning algorithms algorithms graph algorithms, union-find, dynamic programming theory DFAs for scanning, parser generators, lattice theory systems allocation and naming, locality, synchronization architecture pipeline management, hierarchy management, instruction set use Inside a compiler, all these things come together CS502 Introduction 5 Isn’t it a solved problem? Machines are constantly changing Changes in architecture changes in compilers new features pose new problems changing costs lead to different concerns old solutions need re-engineering Changes in compilers should prompt changes in architecture New languages and features CS502 Introduction 6 Intrinsic Merit Compiler construction is challenging and fun interesting problems primary responsibility for performance ( blame ) new architectures new challenges real results
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern