Get the latest tech news

Golang on the Playstation 2


The PS2 is more than capable of doing some wild things, including running Linux. I always wondered if we could just write baremetal Go code on it, so I decided to give it a try.

It uses hardware floating numbers, and the-fno-pic and-mxgot is to deal with a global offset table size limit issue when linking. This is technically a mixed approach: it’s both baremetal - because it runs without a proper OS - but it’s also not - because it allocates memory, enters and exits application. Target-specific things, such as syscalls, inline assembly and interrupt support Floating points as they are non-functional at the moment New LLVM MIPS CPU - yes, we’ll probably need that, plus this way we can avoid hacking code inside TinyGo’s compiler Everything else we want!

Get the Android app

Or read this on Hacker News

Read more on:

Photo of golang

golang

Photo of PlayStation 2

PlayStation 2

Related news:

News photo

Particle Based Physics Engine in Golang

News photo

Show HN: A Database Written in Golang

News photo

Discussion: Reduce error handling boilerplate in Golang using '?'