next up previous
Nächste Seite: Abstrakte Maschinen Aufwärts: Compilerbau Vorlesung, Wintersemester 2003 Vorherige Seite: Compilerbau Vorlesung, Wintersemester 2003

Überblick (8. 10. 03)

Was ist ein Compiler?

$ $Id: intro.tex,v 1.1 2003/10/13 15:46:31 joe Exp $ $

Beispiele: Interpreter: Shells (bash), Script-Sprachen (Perl), hugs

Beispiele: Compiler: gcc, javac, latex, dvips, ghc

Compiler zum Textsatz

$ $Id: beispiele.tex,v 1.1 2003/10/13 15:46:31 joe Exp $ $

Zielsprache: Seitenbeschreibungssprache, z. B. PostScript

42 42 scale 7 9 translate .07 setlinewidth .5 setgray/c{arc clip fill
setgray}def 1 0 0 42 1 0 c 0 1 1{0 3 3 90 270 arc 0 0 6 0 -3 3 90 270
arcn 270 90 c -2 2 4{-6 moveto 0 12 rlineto}for -5 2 5{-3 exch moveto
9 0 rlineto}for stroke 0 0 3 1 1 0 c 180 rotate initclip}for showpage

      Eingabe:  compilerbau.tex
$ latex compilerbau.tex
      erzeugt compilerbau.dvi
$ xdvi compilerbau.dvi

$ dvips compilerbau.dvi
      erzeugt compilerbau.ps
$ gv compilerbau.ps

$ latex2html compilerbau

Empfohlene Literatur/Links

$ $Id: literatur.tex,v 1.1 2003/10/13 15:46:31 joe Exp $ $

Organisation

$ $Id: org.tex,v 1.1 2003/10/13 15:46:31 joe Exp $ $

Leistungsnachweise

$ $Id: leistung.tex,v 1.1 2003/10/13 15:46:31 joe Exp $ $

Arbeitsweise eines Übersetzers

$ $Id: schritte.tex,v 1.1 2003/10/13 15:46:31 joe Exp $ $

Vorteile eines Compilers

$ $Id: vorteile.tex,v 1.2 2003/11/06 13:59:41 joe Exp $ $

strenges Typsystem $\Rightarrow$ viele Tests zur Compile-Zeit, keine zur Laufzeit $\Rightarrow$ schnelle Programme!


next up previous
Nächste Seite: Abstrakte Maschinen Aufwärts: Compilerbau Vorlesung, Wintersemester 2003 Vorherige Seite: Compilerbau Vorlesung, Wintersemester 2003
Johannes Waldmann 2004-01-28