Last active
April 22, 2021 22:46
-
-
Save bspaulding/b394bb6c8f225bf5bbceee1bdc271251 to your computer and use it in GitHub Desktop.
spim dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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