GCC for RISC OS 3

Discuss all aspects of programming here. From 8-bit through to modern architectures.
Post Reply
Midar
Posts: 8
Joined: Fri Oct 26, 2018 9:40 am
Contact:

GCC for RISC OS 3

Post by Midar » Tue Nov 06, 2018 10:39 pm

Hi!

I know there's GCC for newer versions of RISC OS, but the binaries generated by it do not work on RISC OS 3. This is not just a matter of 26 bit, which is easy to solve by compiler flags, but also missing SWIs used by crt.

Has anyone ever tried patching the crt and libc so that it still works with RISC OS 3? Or is there even a different GCC than the ROOL one, possibly even one for RISC OS 3?

User avatar
flibble
Posts: 665
Joined: Tue Sep 22, 2009 10:29 am
Contact:

Re: GCC for RISC OS 3

Post by flibble » Wed Nov 07, 2018 2:38 am

Midar wrote:
Tue Nov 06, 2018 10:39 pm
Has anyone ever tried patching the crt and libc so that it still works with RISC OS 3?
Not me
Or is there even a different GCC than the ROOL one
I think you might be confused, there are two compilers for RISC OS (ish), GCC and Norcroft (currently provided by ROOL). ROOL doesn't distro gcc.
possibly even one for RISC OS 3?
If the current gcc, from riscos.info doesn't work on risc os 3, this version may be suitable (2.7.2)

http://www.drobe.co.uk/archives/index.p ... ang/c/gcc/

If you're looking for an older versions of the Norcroft compiler that work on RISC OS 3, this is it.

http://www.4corn.co.uk/articles/acornc5/
Last edited by flibble on Wed Nov 07, 2018 2:51 am, edited 1 time in total.

Midar
Posts: 8
Joined: Fri Oct 26, 2018 9:40 am
Contact:

Re: GCC for RISC OS 3

Post by Midar » Wed Nov 07, 2018 11:37 pm

That's right - by the ROOL one, I mean the riscos.info one. I was under the impression that this is targeting ROOL?

The ancient GCC might be useful to see if the crt could be used with a newer one. Maybe -nostartfiles -nostdlibs and then explicitly linking the old versions will be enough. I'll give that a try!

Post Reply