Hi Developers,
For my port of the game *OpenTyrian* (https://github.com/kulichbulich/opentyrian-sgi/), I’ve put together a small framework that makes it possible to debug and single-step an application running in an emulator via VS Code:
The first part is a cross-compilation framework; you can set it up by following the instructions here:
*irix-gcc* (https://github.com/pdaxrom/irix-gcc)
Here is the skeleton of a C project that uses a cross-compiler to generate MIPS-N32 binaries on Ubuntu x86.
The second part is a testing platform where you can run the binary from the previous step without real hardware: *SGI_Emu* (https://github.com/kulichbulich/SGI_Emu) a complete image (SGI Irix 6.5) with a built-in emulator *iris* (https://github.com/techomancer/iris)
The repository contains two binaries for Ubuntu 24.04:
iris - slower, suitable for debugging your application
iris_jit - JIT enabled; emulation is fast, but there are issues with debugging; suitable for testing the final build
This C application skeleton also includes settings to debug your application from VS Code with Iris emulator.
Feedback is welcome, and I’ll add some more sample applications in the future.
Kulich
For my port of the game *OpenTyrian* (https://github.com/kulichbulich/opentyrian-sgi/), I’ve put together a small framework that makes it possible to debug and single-step an application running in an emulator via VS Code:
The first part is a cross-compilation framework; you can set it up by following the instructions here:
*irix-gcc* (https://github.com/pdaxrom/irix-gcc)
Here is the skeleton of a C project that uses a cross-compiler to generate MIPS-N32 binaries on Ubuntu x86.
The second part is a testing platform where you can run the binary from the previous step without real hardware: *SGI_Emu* (https://github.com/kulichbulich/SGI_Emu) a complete image (SGI Irix 6.5) with a built-in emulator *iris* (https://github.com/techomancer/iris)
The repository contains two binaries for Ubuntu 24.04:
iris - slower, suitable for debugging your application
iris_jit - JIT enabled; emulation is fast, but there are issues with debugging; suitable for testing the final build
This C application skeleton also includes settings to debug your application from VS Code with Iris emulator.
Feedback is welcome, and I’ll add some more sample applications in the future.
Kulich
Last edited: