cjvillar / cis_27_group_project

0 stars 0 forks source link

Collect Resources #1

Open cjvillar opened 2 months ago

cjvillar commented 2 months ago

collect resources/ instructional guide to follow.

Here are some of the resources we've mentioned:

https://norasandler.com/2017/11/29/Write-a-Compiler.html

https://compilers.iecc.com/crenshaw/

Modern Compiler Implementation in C.

cjvillar commented 2 months ago

I like https://norasandler.com/2017/11/29/Write-a-Compiler.html as they reference a research paper that guides the whole process step-by-step. I think by Monday I will have a strong argument for us to write a "template" compiler in (C , c++, rust or GO) , target x86 assembly.

  1. We will need to package the code and the prof will run it ( maybe). so our dependencies will need to be limited
  2. If we follow the paper it is well-guided and we learn a lot.
  3. assembly isn't all that scary ( I've written hello world lol)
cjvillar commented 2 months ago

https://m-peko.github.io/craft-cpp/posts/writing-a-compiler-part-1/

stlamoureux1 commented 2 months ago

https://mcyoung.xyz/2023/08/01/llvm-ir/

https://www3.nd.edu/~dthain/compilerbook/

stlamoureux1 commented 2 months ago

Outline for flex (lexical analyser):

https://westes.github.io/flex/manual/

stlamoureux1 commented 2 months ago

https://llvm.org/docs/CMake.html#embedding-llvm-in-your-project

stlamoureux1 commented 2 months ago

Short description of Lex & Yacc (the older versions of Flex & Bison resp.)

https://arcb.csc.ncsu.edu/~mueller/codeopt/codeopt00/y_man.pdf

We might have better luck looking at documentation for those -- the docs for Flex are pretty sparse.

stlamoureux1 commented 1 month ago

Description of recursive descent, eliminating left recursion, and building ASTs

https://www.engr.mun.ca/~theo/Misc/exp_parsing.htm