To install CodeGrinder, click on a CodeGrinder assignment in Canvas and follow the instructions:
grind
on
Linux (64-bit x86)” if you on an x86 Windows machine or an Intel
MacOS machine. Select the version for ARM64 if you are on an
Apple Silicon Mac.grind
to confirm that it is installed. It should give you
help for the grind tool.You should now be ready to download an assignment. From the command line:
grind list
to see your assignments. Each has an ID
number.grind get <id>
with that ID number to download an
assignment. It will tell you the directory where the files are
placed.Go into that directory using the cd
command. To get into the
directory of assignments for this course:
cd ~/CS-2810
ls
Change into the project directory from there:
cd rv64-hello-world
or whatever the project directory is named.
Problem instructions are in the doc
directory and there is
normally a .s
file that you need to edit, e.g., hw.s
. When you
are ready to test your solution:
make
Note that you can run this from the vscode shell or a command-line window.
When everything works and you are ready to submit for grading:
grind grade
To edit a file from within the current directory, type the name of the editor followed by the name of the file:
micro hw.s
micro
is a simple terminal editor that is good for basic tasks.
For Linux users it should be installed if you used the installation
instructions I provided.
Editors like micro (and more sophisticated editors like vim and emacs) work in the terminal text window without requiring a separate graphical window. This is useful when working on remote servers or other environments where a text window may be all that is available.
If you are using vscode on a Mac you can use it normally. On WSL you
can run it on your native OS and have it ssh
into Linux and
shuffle files back and forth for you. It looks and feels like you
are working on the local OS, but the files that you see and edit
through vscode are all from the Linux environment. Here are
instructions for getting started setting this up:
Best of luck! Let me know if these instructions need further fixes.