Skip to content

Goclis/mcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

162 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiniC Compiler

Environments and Tools

  • Visual Studio 2013 Community
  • Flex && Bison

Usages

####Normal input

% mcc.exe file_path

eg:
% mcc.exe test # relative path
% mcc.exe C:\Users\XXX\Desktop\test # absolute path

output

Three files:

  • test.out: MIPS assembly code, .out might be omitted if input file has suffix extension such as test.c.
  • ram.coe: File to initialize RAM.
  • rom.coe: File to initialize ROM, with bios code.

####Special If you want to use the compiler to compile the system call method, and then add the output to bios-init, you can use it with following command.

input

% mcc.exe system_calls --no-bios

output

Three files:

  • test.out: MIPS assembly code.
  • ram.coe: File to initialize RAM.
  • rom.coe: File to initialize ROM, without bios code.

References

  1. Stanford compiler-004 on coursera.org.
  2. Some reference books.

About

MiniC Compiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors