Skip to content

zerbfra/acse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#ACSE

ACSE (Advanced Compiler System for Education) is a simple compiler de- veloped for educational purpose as a tool for the course “Formal languages and compiler”. ACSE is able to translate a source code written in LanCE 1.3 (Language for Compilers Education) into an assembly for the MACE archi- tecture (see the MACE documentation in Chapter 3). Figure 1.1 shows the components mentioned above and their interaction.

This version works also under Mac OSX Yosemite and El Capitan (edited some files to work with new version of gcc etc...)

ACSE was provided to students in "Formal Languages and Compilers (FLC)" course at Politecnico di Milano.

You can navigate through the different branches of this repository to see the different exercises I made in order to prepare for the exam.

Here are my notes: Notes

How to

To install the ACSE compiler type in the console: make

To compile some examples (located in the directory ./tests) type: make tests

In order to use the compiler/assembler/executor at first you have to export the directory ./bin in your current PATH as follows: export PATH=`pwd`/bin:$PATH

You can compile and run new Lance programs in this way (suppose you have saved a Lance program in 'myprog.src'):

acse myprog.src myprog.asm

asm myprog.asm myprog.o

mace myprog.o

About

acse compiler - formal languages and compilers polimi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published