Skip to content

Instantly share code, notes, and snippets.

@bspaulding
Last active April 22, 2021 22:46
Show Gist options
  • Save bspaulding/b394bb6c8f225bf5bbceee1bdc271251 to your computer and use it in GitHub Desktop.
Save bspaulding/b394bb6c8f225bf5bbceee1bdc271251 to your computer and use it in GitHub Desktop.
spim dockerfile
FROM alpine
RUN apk add subversion make bison g++ flex
WORKDIR /spim-src
RUN svn checkout svn://svn.code.sf.net/p/spimsimulator/code/ spimsimulator-code
RUN cd spimsimulator-code/spim && make install
RUN rm -rf /spim-src
# Hello, World!
.data ## Data declaration section
## String to be printed
out_string: .asciiz "\nHello, World!\n"
.text
main:
li $v0, 4
la $a0, out_string
syscall
li $v0, 10
syscall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment