Computer Organization (Estructura de Computadors, EC)

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.

RISC-V course materials

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):

Slides

MARS (MIPS Assembler and Runtime Simulator)

Installation

  1. Download and save this Mars.jar version.
  2. Download and save this startup.s version.
  3. Install a Java Runtime Environment (JRE) version 1.6 or above.

Initial setting (only once)

  1. Settings tab (top left) → Exception handler ... (2nd from bottom):
    1. Browse → Select the startup.s file.
    2. Select the checkbox ✓ Include this exception handler file in all assemble operations.

Usage

  1. Open a terminal (Linux: Ctrl+Alt+T, Microsoft Windows: Win+X → WinX).
  2. Go to Mars.jar directory (e.g. cd <DIR_FULL_PATH>).
  3. Run: java -jar Mars.jar.

Script

  #!/bin/bash
  
  cd ~/UPC/EC/mars
  java -jar Mars.jar

F1 help

C programming

GNU bc

GNU bc is an arbitrary precision numeric processing language. It can be used as a base converter and for integer arithmetic.

GNU/Linux

Floating-Point

References


[Parent page] [Root page]
Last update: 2026/10/24