SDCC for 6502
-
GlennSmith
- Posts: 162
- Joined: 26 Dec 2002
- Location: Occitanie, France
Re: SDCC for 6502
Hi,
It would be nice to have a 65c02 cross-compiler that didn't have to be forced to run under wine on linux machines(*). Is anybody able to liase with the SDCC dev. group to provide feedback about the "peculiarities" of the 6502/65c02 instructions and architecture?*
I'd offer to help, but I'm very *VERY* rusty at the moment - I still develop more on PIC/ATMega microcontrollers than the 6502. The SBC that I built back in the 90's was not at all reliable, and I've since lost the schematics and the board (all went with the rusty Atom to the great museum in the sky...).
I naively (spelling ? sorry if it's wrong) thought that when I retired I'd have time to play : so far it's not the case.
Could we perhaps work together, for example I could run tests and interface with the dev group, if one or two of you that are able to provide the expertise on what could be added or improved could check over the final results of the tests.
(*) after having supported a factory with 600 Windows machines for decades, I vowed never to use uSoft again. I almost manage, I have an old Win95 laptop just for my 3D architecture suite. Everything else has been on linux for over 10yrs now.
Please provide f/b. Regards, Glenn from France.
It would be nice to have a 65c02 cross-compiler that didn't have to be forced to run under wine on linux machines(*). Is anybody able to liase with the SDCC dev. group to provide feedback about the "peculiarities" of the 6502/65c02 instructions and architecture?*
I'd offer to help, but I'm very *VERY* rusty at the moment - I still develop more on PIC/ATMega microcontrollers than the 6502. The SBC that I built back in the 90's was not at all reliable, and I've since lost the schematics and the board (all went with the rusty Atom to the great museum in the sky...).
I naively (spelling ? sorry if it's wrong) thought that when I retired I'd have time to play : so far it's not the case.
Could we perhaps work together, for example I could run tests and interface with the dev group, if one or two of you that are able to provide the expertise on what could be added or improved could check over the final results of the tests.
(*) after having supported a factory with 600 Windows machines for decades, I vowed never to use uSoft again. I almost manage, I have an old Win95 laptop just for my 3D architecture suite. Everything else has been on linux for over 10yrs now.
Please provide f/b. Regards, Glenn from France.
Re: SDCC for 6502
GlennSmith wrote:
Hi,
It would be nice to have a 65c02 cross-compiler that didn't have to be forced to run under wine on linux machinesce.
It would be nice to have a 65c02 cross-compiler that didn't have to be forced to run under wine on linux machinesce.
Re: SDCC for 6502
Proxy wrote:
GlennSmith wrote:
Hi,
It would be nice to have a 65c02 cross-compiler that didn't have to be forced to run under wine on linux machinesce.
It would be nice to have a 65c02 cross-compiler that didn't have to be forced to run under wine on linux machinesce.
-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
-
GlennSmith
- Posts: 162
- Joined: 26 Dec 2002
- Location: Occitanie, France
Re: SDCC for 6502
Proxy wrote:
GlennSmith wrote:
Hi,
It would be nice to have a 65c02 cross-compiler that didn't have to be forced to run under wine on linux machinesce.
It would be nice to have a 65c02 cross-compiler that didn't have to be forced to run under wine on linux machinesce.
I do have an old Win version that works, but it's a hassle to run under wine. I'll see what I can do.
Thanks
Re: SDCC for 6502
now i'm a bit confused why you would need to build it yourself.
i thought mint is based on ubuntu, in which case you shouldn't you be able to just do "sudo apt install cc65" in a terminal and have it work? (or even get an IDE like VScode and install the cc65 plugin for it in the UI)
for the record i did try "sudo apt install cc65" on my WSL install of ubuntu and it does actually work without having to build it manually.
i thought mint is based on ubuntu, in which case you shouldn't you be able to just do "sudo apt install cc65" in a terminal and have it work? (or even get an IDE like VScode and install the cc65 plugin for it in the UI)
for the record i did try "sudo apt install cc65" on my WSL install of ubuntu and it does actually work without having to build it manually.
Last edited by Proxy on Tue Jun 06, 2023 8:37 pm, edited 1 time in total.
Re: SDCC for 6502
I was able to get it compile just fine under Ubuntu under my WSL environment.
They provide binaries for Windows, Linux and Mac OS on their daily builds if you don't want to build yourself:
https://sdcc.sourceforge.net/snap.php
They provide binaries for Windows, Linux and Mac OS on their daily builds if you don't want to build yourself:
https://sdcc.sourceforge.net/snap.php
Re: SDCC for 6502
GlennSmith wrote:
Hi,
It would be nice to have a 65c02 cross-compiler that didn't have to be forced to run under wine on linux machinesce.
It would be nice to have a 65c02 cross-compiler that didn't have to be forced to run under wine on linux machinesce.
I do have an old Win version that works, but it's a hassle to run under wine. I'll see what I can do.
Thanks
It's a standard package under Debian and Devuan (which is what I mostly use now), so no reason to think it's not there for other flavours.
However I compiled it from scratch for myself as it's the only way to add a new system into it. I don't recall any issues there. It's nothing special, no GUI, no fancy networking or other stuff needed. It's just another C program...
-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
-
GlennSmith
- Posts: 162
- Joined: 26 Dec 2002
- Location: Occitanie, France
Re: SDCC for 6502
Hi,
Yes, I downloaded the sources and i compiled for Ubuntu without any problems. Thanks for the reminder about cc65.
Glenn
Yes, I downloaded the sources and i compiled for Ubuntu without any problems. Thanks for the reminder about cc65.
Glenn
Re: SDCC for 6502
GlennSmith wrote:
Hi,
Yes, I downloaded the sources and i compiled for Ubuntu without any problems. Thanks for the reminder about cc65.
Glenn
Yes, I downloaded the sources and i compiled for Ubuntu without any problems. Thanks for the reminder about cc65.
Glenn
I think it's good that there is a choice of C compilers now (and I used sdcc for a PIC project some years back too but never really thought of it for the 6502).
VBCC runs under Linux too:
http://www.compilers.de/vbcc.html
but I've not tried to use it - mostly because cc65 fits all my needs.
-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Re: SDCC for 6502
I was just reminded of SDCC and had a quick look for updates: they're now up to 4.4 and include generation for both (either of) 6502 and 65C02.
I haven't played with it yet to find out whether the previous issues I noted - particularly with interrupt vectors - have been addressed, but it looks possible.
Neil
I haven't played with it yet to find out whether the previous issues I noted - particularly with interrupt vectors - have been addressed, but it looks possible.
Neil
Re: SDCC for 6502
GlennSmith wrote:
Hi,
It would be nice to have a 65c02 cross-compiler that didn't have to be forced to run under wine on linux machines(*).
It would be nice to have a 65c02 cross-compiler that didn't have to be forced to run under wine on linux machines(*).
-
GlennSmith
- Posts: 162
- Joined: 26 Dec 2002
- Location: Occitanie, France
Re: SDCC for 6502
Quote:
Linux is a first-class host for llvm-mos, and it supports 65c02 natively.
Thanks, in any case.
Glenn-in-France
Re: SDCC for 6502
GlennSmith wrote:
Quote:
Linux is a first-class host for llvm-mos, and it supports 65c02 natively.
Thanks, in any case.
I'm sticking to cc65 for now.
-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Re: SDCC for 6502
drogon wrote:
GlennSmith wrote:
Quote:
Linux is a first-class host for llvm-mos, and it supports 65c02 natively.
Thanks, in any case.
I'm sticking to cc65 for now.
-Gordon
Re: SDCC for 6502
johnwbyrd wrote:
Yep, gravity is a thing. cc65 definitely has a much larger installed base. Most of the people using llvm-mos right now are either cycle counters, or people who need strict C compliance. Anyway, as the home page points out, the compiler is on Godbolt, so you can play with it without installing anything. https://godbolt.org/z/T5r1xPYG9