GNU compiler collection for 6502
Posted: Sat Jul 30, 2016 5:32 am
I found the source code repositry here, but haven't found any post here about it.
Is anyone here using it for the Vic-20?
Is anyone here using it for the Vic-20?
The Commodore Vic 20 Forum
http://sleepingelephant.com/ipw-web/bulletin/bb/
http://sleepingelephant.com/ipw-web/bulletin/bb/viewtopic.php?t=8128
Thanks for clearing that up. Is there any other "linux" variants (or minix) that run under 6502?groepaz wrote:it does NOT run "on" the c64 - it produces code that can then run on the c64. (and lng isnt "a linux variant" at all...)
Well, someone got Minix to run on his own computer with a home-made cpu (made from 74xx chips) and 64KB. I don't see the Vic-20 as being inferior to that.groepaz wrote:no not really, linux is really a bit too heavy for that there are some other projects that use a somewhat similar approach, one of which is LNG (which is dead unfortunately). the most "serious" one i have seen is "fuzix" (find it on github) - but that has not been ported to c64 or vic20 yet.
Just to set the facts straight: the CPU of this machine (Magic-1) has 22 bits address space with 64K segments/pages and I/O; and the computer contains 4 MB RAM in total.Kakemoms wrote:Well, someone got Minix to run on his own computer with a home-made cpu (made from 74xx chips) and 64KB. I don't see the Vic-20 as being inferior to that.
From the homepage: "It's a one-address, microprogrammed machine with one-byte opcodes. It features 8/16-bit data operations, functioning on an 8-bit wide data bus with 16-bit addresses (mapped via 2K-byte pages into a 22-bit physical address space)."Mike wrote:Just to set the facts straight: the CPU of this machine (Magic-1) has 22 bits address space with 64K segments/pages and I/O; and the computer contains 4 MB RAM in total.Kakemoms wrote:Well, someone got Minix to run on his own computer with a home-made cpu (made from 74xx chips) and 64KB. I don't see the Vic-20 as being inferior to that.
What do you mean inadequate video system? It has colors and several bits of resolution!Mike wrote:For me, there's not much sense to elaborate further if there's a sensible way to get a Unixoid OS running on a 65xx in general, and on the 6502/VIC-20 in particular: just take a look at the Contiki port by Carlsson - that one got to a dead end because the available address space is obstructed by the ROM ranges. He barely got a stack running on it. Or take a look at Lee's web server: it uses a (non-intelligent!) ISA network card - the VIC-20 is able to run a web server on it, barely.
There are no standardized means of memory management and protection. Only a CPU with 8 bit data bus and 16 bit address space (and at 1 MHz). Sloo-oo-oow peripherals. A functional, but (for your intended use woefully) inadequate video system. Etc. Simply the wrong tool for the job!
Doesn't mean you can't do anything on the VIC-20. It just means one needs a sensible judgement of what is possible to achieve with the VIC-20 hardware, and what is not. If you lack that judgement, you'll put just lots of hours into waste because it won't work out.
I had similar discussions with MRaider/FD22, who also concocted that writing an own OS would somehow help to transcend the limits of the VIC-20 hardware. With exactly 0 (read: zero!) results after four years. That track record should speak for itself.
Kakemoms, please don't fall into the same trap. There's still enough to explore on the VIC-20, still something new to try out - with standard h/w, external expansions or moderate modifications of the mainboard; and new algorithms - and here in Denial you have a huge collection of knowledge, and can you ask for collaboration or help. And the best releases of the last years most often were not one-man-shows.
Think about this.
Ah, I see. That is interesting. While the 6502 can't do that, my 65C02 expansion can do it. Currently there is only 4 pages, but I have increased that to 16 in the next version (with 1MByte memory). I will keep that in mind for the next layout. Its a simple poke to switch to a different 64KB page.groepaz wrote:actually fuzix was designed for 8bit CPUs with segmented memory - however it will not work well unless you can provide fast context switching (meaning being able to bank the stack page at least on 6502).
Mike wrote:[...] A functional, but (for your intended use woefully) inadequate video system. [...]
From the context, it should have been clear to you that this sentence (and the whole paragraph, and the one preceding it) referred to the VIC-20.Kakemoms wrote:What do you mean inadequate video system? It has colors and several bits of resolution!