Warning: The information on this page may be outdated. Students of this course should not use its contents as a reference and must consult el Racó instead.
The course currently uses the MIPS architecture (see the sections below). From the spring 2027 semester (2026/27, second semester), it will use RISC-V. New materials (in Catalan):
Mars.jar version.startup.s version.Settings tab (top left) → Exception handler ... (2nd from bottom):
Browse → Select the startup.s file.Include this exception handler file in all assemble operations.Ctrl+Alt+T, Microsoft Windows: Win+X → WinX).Mars.jar directory (e.g. cd <DIR_FULL_PATH>).java -jar Mars.jar.#!/bin/bash cd ~/UPC/EC/mars java -jar Mars.jar
gcc -o BINARY_FILE_NAME C_FILE_NAME.c.-Wall, -Wextra and -Wpedantic, by order of severity, although not entirely inclusive.binutils).GNU bc is an arbitrary precision numeric processing language. It can be used as a base converter and for integer arithmetic.
obase = <OUTPUT_BASE_in_current_ibase>, ibase = <INPUT_BASE_in_current_ibase> (in most cases you want to set obase before ibase), and scale = <NUMBER> (set scale to zero for integer / and %).-l preloads a math library and sets scale to 20.