Skip to content
/ CMP-2240 Public template
forked from d-kakhiani/CMP-2240

CS143 template for cool project

Notifications You must be signed in to change notification settings

Iamdachi/CMP-2240

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build image

docker build -t cmp2240 .

Run container

docker run -it --rm -v $(pwd):/root/cs143 cmp2240:latest /bin/bash

Run the compiler

coolc <filename.cl>

Run the compiled code

spim <filename.s

Example

coolc examples/hello_world.cl # Compile the file
spim examples/hello_world.s # Run the compiled code

Example output

SPIM Version 6.5 of January 4, 2003
Copyright 1990-2003 by James R. Larus ([email protected]).
All Rights Reserved.
See the file README for a full copyright notice.
Loaded: /usr/class/cs143/cool/lib/trap.handler
Hello, World.
COOL program successfully executed
Stats -- #instructions : 152
         #reads : 27  #writes 22  #branches 28  #other 75

About

CS143 template for cool project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 56.2%
  • Makefile 41.2%
  • Dockerfile 2.6%