C compilers
David Boddie (1934) 222 posts |
In the WIMP2 integration topic, DavidS wrote:
There was LCC up until a certain point. The Inferno C compiler (the linker, actually) can theoretically produce AIF binaries – see this file for a bit more information. It’s not what you might call a “modern” C compiler, however. |
David Boddie (1934) 222 posts |
LCC 4.20 is apparently 32-bit. |
Steve Pampling (1551) 8172 posts |
Well any way around the source is available. |
David Boddie (1934) 222 posts |
On the riscos.info page it says “The current 4.20 32-bit release” above “The previous 4.10 26-bit releases” so I assume that it’s 32-bit not 26-bit. |
Steve Pampling (1551) 8172 posts |
Given the age, if it uses UnixLib then it’s probably got a few ARMv7+ issues too (using SWP perhaps) |
Roy Sutcliffe (8385) 3 posts |
I’ve been playing with LLC this week and like DavidS found that it stopped with an error referring to lccpath:bin.rcc: can’t write `/tmp/llcxxxxxx.s`.After a bit of searching I found /tmp/ is a pointer to the directory
and the reason it comes up with this message is rcc can’t create it’s directory s in ScrapDir. If you create it and run lcc again you will find it compiles no problem. LCC uses three directories i, s and o, it can create the other two itself but not s. Hope this helps |
Roy Sutcliffe (8385) 3 posts |
Thanks, I’m glad I could help. I hadn’t realised when I posted this that half the path was missing due to Textile using the pling character for formatting, glad you could figure it out. I’ve sorted it now. I’ve decided to have another look at C, I originally learned it on the Amiga in the early 90’s but didn’t do much with it and had one or two abortive attemts since so I’ve dug out my old Kernighan and Richie, and found a PDF of The C answer Book for when I get stuck. LCC works well on a Raspberry Pi 1B and StrongArm is a nice editor to work with. I’m glad I found this post and found out about LCC, it’s light not too complicated and doesn’t need a load of memory just to compile Hello World! Incidentally I figured out how to find the path from the source code, there’s a lot of documents in the root directory and one described how to use LCC -v to find the various paths, LCC -v /tmp/ refers to <Wimp$ScrapDir>, type in echo <Wimp$ScrapDir> gives the path. |
Roy Sutcliffe (8385) 3 posts |
Thank you. That’s interesting, I’m a bit of a newbie with RISCOS and I like to know how OS’s work. Before this I had hardly seen ScrapDir mentioned, only when I tried running WinEd in Dr Wimp and it crashed saying it left a file in ScrapDir. |
Steve Pampling (1551) 8172 posts |
At the bottom of this page (when writing) is a bit of text "See also the Textile reference here. " |
JamesCampbell (8791) 1 post |
Never knew how to migrate an OS to RISC OS it will be interesting to watch! |
alban read (2898) 20 posts |
re: C compilers |