LINKS
author Christian Urban <urbanc@in.tum.de>
Sun, 05 Aug 2018 21:52:40 +0100
changeset 554 2509c670e3a2
parent 553 3c040f4a7415
child 555 9f8066748f60
child 556 40e22ad45744
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
550
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
     1
Compiler courses
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
     2
http://www.cse.chalmers.se/edu/year/2017/course/TDA283/lectures/
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
     3
http://www.cs.columbia.edu/~sedwards/classes/2017/4115-fall/index.html
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
     4
http://www.cs.dartmouth.edu/~mckeeman/cs48/index.html
553
3c040f4a7415 updated
Christian Urban <urbanc@in.tum.de>
parents: 550
diff changeset
     5
http://www.cl.cam.ac.uk/teaching/1718/CompConstr/materials.html
550
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
     6
===============================
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
     7
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
     8
Pictures from the Starting Forth book
546
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
     9
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    10
https://www.forth.com/starting-forth/2-stack-manipulation-operators-arithmetic/
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    11
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    12
--------------------------------
550
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    13
Java Byte Code for SCALA
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    14
https://www.toptal.com/scala/scala-bytecode-and-the-jvm
546
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    15
550
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    16
------------------
546
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    17
Yeti - ML for the JVM
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    18
https://mth.github.io/yeti/
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    19
http://dot.planet.ee/yeti/intro.html
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    20
550
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    21
------------------
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    22
Ocaml for LLVM
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    23
https://github.com/artagnon/rhine-ml 
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    24
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    25
---------------
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    26
Type inference 
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    27
http://www.calebh.io/Type-Inference-by-Solving-Constraints/
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    28
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    29
546
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    30
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    31
JVM languages
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    32
https://en.wikipedia.org/wiki/List_of_JVM_languages
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    33
https://www.codeproject.com/Articles/50377/Create-Your-Own-Programming-Language
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    34
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    35
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    36
Scheme
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    37
https://wespiser.com/writings/wyas/home.html
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    38
http://peter.michaux.ca/index#Scheme
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    39
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    40
6589afc6789b updated
Christian Urban <urbanc@in.tum.de>
parents: 495
diff changeset
    41
476
d922cc83b70c updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    42
assmebly (calculator RPN)
d922cc83b70c updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
d922cc83b70c updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
https://dere.github.io/2017-02-12/beginners-assembly-part1/
d922cc83b70c updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    45
d922cc83b70c updated
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
477
b78664a24f5d updated
Christian Urban <urbanc@in.tum.de>
parents: 476
diff changeset
    47
webassembly
b78664a24f5d updated
Christian Urban <urbanc@in.tum.de>
parents: 476
diff changeset
    48
https://sourceware.org/ml/binutils/2017-03/msg00044.html
b78664a24f5d updated
Christian Urban <urbanc@in.tum.de>
parents: 476
diff changeset
    49
https://hacks.mozilla.org/2017/02/a-cartoon-intro-to-webassembly/
495
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    50
https://webassembly.github.io/spec/
477
b78664a24f5d updated
Christian Urban <urbanc@in.tum.de>
parents: 476
diff changeset
    51
b78664a24f5d updated
Christian Urban <urbanc@in.tum.de>
parents: 476
diff changeset
    52
webassembly explorer
b78664a24f5d updated
Christian Urban <urbanc@in.tum.de>
parents: 476
diff changeset
    53
https://mbebenita.github.io/WasmExplorer/
b78664a24f5d updated
Christian Urban <urbanc@in.tum.de>
parents: 476
diff changeset
    54
495
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    55
ARM
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    56
https://azeria-labs.com/writing-arm-assembly-part-1/
477
b78664a24f5d updated
Christian Urban <urbanc@in.tum.de>
parents: 476
diff changeset
    57
495
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    58
JVM
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    59
https://www.toptal.com/scala/scala-bytecode-and-the-jvm
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    60
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    61
Growing a compiler
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    62
http://www.cs.dartmouth.edu/~mckeeman/cs48/mxcom/gem/html/GrowingCompiler.html
477
b78664a24f5d updated
Christian Urban <urbanc@in.tum.de>
parents: 476
diff changeset
    63
b78664a24f5d updated
Christian Urban <urbanc@in.tum.de>
parents: 476
diff changeset
    64
free books
b78664a24f5d updated
Christian Urban <urbanc@in.tum.de>
parents: 476
diff changeset
    65
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
495
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    66
https://john.cs.olemiss.edu/~hcc/csci658/notes/Free_Prog_Lang_Textbooks.html
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    67
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    68
MIPS
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    69
http://courses.missouristate.edu/kenvollmar/mars/
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    70
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    71
PEG
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    72
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    73
https://github.com/taocpp/PEGTL
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    74
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    75
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    76
Parser
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    77
https://www.reddit.com/r/programming/comments/615hoz/how_to_write_a_recursive_descent_parser/
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    78
https://www.reddit.com/r/ProgrammingLanguages/comments/60gmgc/writing_a_recursive_descent_expression_parser/
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    79
http://www.craftinginterpreters.com/parsing-expressions.html
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    80
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    81
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    82
small languages
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    83
https://github.com/Michael2109/cobalt
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    84
http://www.red-lang.org/p/about.html
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    85
http://craftinginterpreters.com/contents.html
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    86
https://michaelhaywoodblog.wordpress.com
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    87
https://ruslanspivak.com/lsbasi-part1/
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    88
http://selfie.cs.uni-salzburg.at
550
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    89
https://academy.realm.io/posts/tryswift-samuel-giddins-building-tiny-compiler-swift-ios/
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    90
https://legacy.gitbook.com/book/luxlang/the-lux-programming-language/details
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    91
https://github.com/rhysd/gocaml
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    92
https://github.com/aalhour/awesome-compilers#educational-and-toy-projects
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
    93
https://rsms.me/hue-intro
495
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    94
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    95
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    96
automata
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    97
https://www7.in.tum.de/um/courses/auto/ws1314/script/autonotes.pdf
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    98
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
    99
Reges helpers
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   100
https://regex101.com
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   101
http://www.regular-expressions.info/tutorial.html
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   102
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   103
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   104
Regex performance benchmark
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   105
https://rust-leipzig.github.io/regex/2017/03/28/comparison-of-regex-engines/
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   106
https://github.com/k-takata/Onigmo
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   107
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   108
Sulzmann
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   109
https://github.com/pippijn/dreml/
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   110
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   111
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   112
Scala parser
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   113
http://enear.github.io/2016/03/31/parser-combinators/
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   114
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   115
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   116
ANTLR megatutorial
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   117
https://tomassetti.me/antlr-mega-tutorial/
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   118
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   119
From regex to LLVM
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   120
https://www.youtube.com/watch?v=Ukqb6nMjFyk
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   121
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   122
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   123
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   124
7d9d86dc7aa0 updated
Christian Urban <urbanc@in.tum.de>
parents: 477
diff changeset
   125
Static code analysis
550
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   126
https://medium.com/@Coder_HarryLee/videos-about-static-code-analysis-7654b40f9a3b
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   127
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   128
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   129
Brainfuck compiler
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   130
https://github.com/PurpleMyst/bf_compiler
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   131
https://www.reddit.com/r/programming/comments/8371tk/a_brainfuck_to_llvm_ir_compiler_written_in_python/
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   132
http://www.wilfred.me.uk/blog/2015/02/21/my-first-llvm-compiler/
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   133
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   134
===============================
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   135
A simple recursive regular expression matcher written in Scala.
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   136
https://github.com/marconilanna/RegexMatcher
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   137
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   138
===============================
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   139
A neat little tool to build presentations using the Scala REPL
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   140
https://github.com/marconilanna/REPLesent
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   141
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   142
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   143
======================
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   144
Minimal Static Single Assignment Form
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   145
Max Wagner and Denis Lohner
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   146
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   147
This formalization is an extension to "Verified Construction of Static Single 
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   148
Assignment Form". In their work, the authors have shown that Braun et al.'s 
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   149
static single assignment (SSA) construction algorithm produces minimal SSA form 
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   150
for input programs with a reducible control flow graph (CFG). However Braun et 
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   151
al. also proposed an extension to their algorithm that they claim produces 
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   152
minimal SSA form even for irreducible CFGs.
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   153
In this formalization we support that claim by giving a mechanized proof.
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   154
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   155
As the extension of Braun et al.'s algorithm aims for removing so-called 
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   156
redundant strongly connected components of phi functions, we show that this 
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   157
suffices to guarantee minimality according to Cytron et al..
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   158
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   159
https://www.isa-afp.org/entries/Minimal_SSA.shtml
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   160
71fc4a7a7039 updated
Christian Urban <urbanc@in.tum.de>
parents: 546
diff changeset
   161
553
3c040f4a7415 updated
Christian Urban <urbanc@in.tum.de>
parents: 550
diff changeset
   162
=========================
3c040f4a7415 updated
Christian Urban <urbanc@in.tum.de>
parents: 550
diff changeset
   163
How Clang compiles a function
3c040f4a7415 updated
Christian Urban <urbanc@in.tum.de>
parents: 550
diff changeset
   164
https://blog.regehr.org/archives/1605