Skip to content

Micro Programming Language Compiler in C for MIPS architecture

Notifications You must be signed in to change notification settings

aloysiusan/Micro-To-MIPS32-Compiler

 
 

Repository files navigation

#ENGLISH Costa Rican Institute of Technology - Computer Engineering School
Compilers and Interpreters
Project 1 - Micro-Compiler
Made by Luis Alvarado & Heiner León - August, 2015

##Compilation Instructions

IMPORTANT: gcc compiler required

  1. Open a new terminal window in the project folder.
  2. Use the makefile. Type in the terminal the command "make".

Once the program is compiled, the compiler will be in the folder 'dist'

##How to Use

  1. Open a new terminal window in the dist folder of the project. (./dist).
  2. Type in the terminal the compiler name (mcc) followed by the micro program which want to be compiled.
    ./mcc programa1.micro
    
  3. Once finished the compilation process, it will create a .asm file. Open it with QtSPIM (or SPIM).

#ESPAÑOL

Instituto Tecnológico de Costa Rica - Escuela de Computación
Compiladores e Intérpretes
Proyecto 1 - Micro-Compilador
Realizado por Luis Alvarado y Heiner León - Agosto, 2015

##Instrucciones de compilación

IMPORTANTE: Requiere de tener instalado gcc

  1. Abrir una ventana de la consola en la carpeta del proyecto.
  2. Usar el makefile del proyecto para compilar el programa. Escribir en la consola "make".

Una vez compilado el programa, el compilador de micro se encuentra en la carpeta 'dist'

##Instrucciones de uso

  1. Abrir una ventana de la consola en la carpeta dist del proyecto (./dist).
  2. Escribir en la consola el nombre el programa (mcc) seguido del nombre del programa Micro a compilar.
    ./mcc programa1.micro
    
  3. Luego de generar el archivo .asm, abrir el archivo en QtSPIM (o SPIM).
  4. Ejecutar el programa en QtSPIM (o SPIM).

About

Micro Programming Language Compiler in C for MIPS architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 94.9%
  • Makefile 2.6%
  • C++ 2.5%