Computer Organisation (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.

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 chechbox ✓ Include this exception handler file in all assemble operations.

Usage

  1. Open a terminal (Linux: Ctrl+Alt+T, Microsoft Windows: Win+XWinX).
  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 an arbitrary precision numeric processing language. It can be used as base converter and for algebraic integer operation.

GNU/Linux

Floating-Point

References


[Parent page] [Root page]
Last update: 2025/03/25