(05-20-2020, 04:56 AM)Raion Wrote: I won't say too much, but great things are afoot. I even learned today that someone is decompiling the 7.1 compiler for IRIX: https://github.com/n64decomp/ido
Interesting. I was using some hacked up python myself on and off to massage 'dis' and IDA Pro output into something that will assemble again, effectively being able to create .o or .a files from ELF binaries, but this looks promising too. Apparently, MIPS support for the HexRays decompiler is in the works as well.
Of course, MIPSpro was released as open source as the Pro64 compiler at some point, but that was an IA64 effort, and the SGI MIPS code generator was stripped off. These people are trying to decompile N64 games into C source so the MIPS code generator is probably the part they're interested in anyway. SGI Pro64 became the Open64 research compiler (which includes an unrelated MIPS code generator).
FWIW: MIPSpro was C++, not C.
(05-20-2020, 04:56 AM)Raion Wrote: Another person pointed me to this on /r/unix: https://github.com/JohnDTX/irix-3.x-src
Got me excited for a second, but it turns out it's not IRIX, but the source to GL2-W3.7, the UNIX for the 68K IRIS. It's been on
BitSavers for more than a decade.
If you want IRIX source code, you're better off studying the RISCos 4.5 source code which is
also on BitSavers.
SGI started off with the 68K IRIS, with some 68K port of probably AT&T UNIX, and added their GL2 code to it. When the first MIPS systems (Professional IRIS) were developed, they used a MIPS reference board set (R2300), plus what was largely a VME version of the 68K IRIS graphics. The R2300 came with a MIPS port of AT&T SVR3, SGI ported the GL2 code from the 68K IRIS. This MIPS port of SVR3 is the common ancestor shared by RISCos and IRIX. RISCos lacks the GL bits and EFS, but had X11 when SGI was still in the NeWS camp.
The RISCos code also includes firmware source for the MIPS systems,
including the R2300. When SGI developed the IP4 board to replace the MIPS R2300 board set, they didn't develop a new PROM firmware from scratch. In fact, you can use the R2300 and common MIPS firmware source code to instrument an IDA Pro disassembly of the IP4 firmware

Of course this repeats itself: the PowerSeries IP5, IP7 and IP15 firmware and Personal IRIS derive from the IP4 firmware, as does the Personal IRIS. The Indigo derives from that, etc etc.
(05-20-2020, 04:56 AM)Raion Wrote: Keep it cool guys. I'll be back soon enough.
Take it easy and see you later.