Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ ppc Public

Pico Pascal Compiler

paulherman/ppc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pico Pascal Compiler

How to build

  • you need ocamlbuild with ocamllex and ocamllyacc
  • you need the ounit library for tests
  • you can see examples in the examples folder
  • command line options ppc (-d <level>) (-O) (-O2) <file>
  • run make test to run the tests (currently inexistent)

Things to do

  • allow in, out registers to be specified at each instructions instead of when declared (i.e. map from vreg to list of pregs); maybe not needed as a register is used twice only in the case of DEFTMP combined with USETEMP, but then we can generate optional moves
  • allow to specify two vregs to be allocated to the same preg; example: add dest, src <=> dest = dest + src <=> out = in0; possible solution: append optional move instruction

About

Pico Pascal Compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages