Page 1 of 1

clang 64-bit MIPS enabled in OpenBSD

Posted: Sun Feb 19, 2017 7:28 am
by cesss
I've just found a commit in the OpenBSD tree, related to enabling MIPS support in clang. However, IIRC, clang wasn't yet ready for outputting MIPS3 nor MIPS4 code. Has that changed? If affirmative, I consider this a great achievement, as it would mean clang would run on SGI hardware... Anybody has any idea on how is it progressing, and what difficulties (if any) are still there?

Re: clang 64-bit MIPS enabled in OpenBSD

Posted: Sun Feb 19, 2017 8:57 am
by Raion-Fox
It would have to support the o32/n32/n64 ABI, output big endian code and a number of other things I'm not sure if it's ready to do or not.

Re: clang 64-bit MIPS enabled in OpenBSD

Posted: Sun Feb 19, 2017 1:52 pm
by cesss
Raion-Fox wrote:It would have to support the o32/n32/n64 ABI, output big endian code and a number of other things I'm not sure if it's ready to do or not.

AFAIK, OpenBSD runs only as 64bit on SGIs. Not sure about the ABI. Theoretically, the ABI could be totally different to IRIX, unless there's some constraint imposed by the MC or other ASIC, but I don't think there's a limit on the ABIs you can implement on SGI hardware.

Re: clang 64-bit MIPS enabled in OpenBSD

Posted: Wed Feb 22, 2017 11:26 pm
by kev009
OpenBSD runs on octeon, as in the EdgeRouter Lite.

Re: clang 64-bit MIPS enabled in OpenBSD

Posted: Fri Feb 24, 2017 12:29 am
by cesss
kev009 wrote:OpenBSD runs on octeon, as in the EdgeRouter Lite.

SGI is listed as with current support too: https://www.openbsd.org/sgi.html Hence my question about if anybody tried the just recently enabled clang in OpenBSD.

Re: clang 64-bit MIPS enabled in OpenBSD

Posted: Mon Feb 27, 2017 1:20 am
by miod
cesss wrote:I've just found a commit in the OpenBSD tree, related to enabling MIPS support in clang. However, IIRC, clang wasn't yet ready for outputting MIPS3 nor MIPS4 code. Has that changed? If affirmative, I consider this a great achievement, as it would mean clang would run on SGI hardware... Anybody has any idea on how is it progressing, and what difficulties (if any) are still there?

Hold your horses. This commit only made possible to build clang on mips-based OpenBSD ports, for developers (and bold users) to tinker with. The compiler used (and shipped) on these ports is still gcc.