Amiga.org
Operating System Specific Discussions => Other Operating Systems => Topic started by: trekiej on July 06, 2010, 04:41:02 AM
-
Anyone have experience with C on the C64?
Maybe some one could recommend a compiler.
Thanks.
-
There was Abacus Super C 64. Although I guess is hard to find now... That's the only one I know of.
This page (http://www.oldsoftware.com/Abacus.html) list it but it has no price.
More info here (http://www.sys5cbm.tk/c-compilers)
-
Thanks.
I have Power C.
I will try it on c64 forever.
-
The Documents say if necessary, compile two separate pieces and link them together.
-
Super C, Power C, and others can be found at
http://commodore64.wikispaces.com/Programming+Languages
Back from the United Kingdom,
Robert Bernardo
Fresno Commodore User Group
http://videocam.net.au/fcug
July 24-25 Commodore Vegas Expo 2010 - http://www.portcommodore.com/commvex
-
http://www.cc65.org/
-
What C support libraries are there for the C64?
-
http://www.cc65.org/
x2 , actually a cross compiler for linux, windows, mac, but still supported with mailing list, several useful libs and useful for many different platforms that ever used 65xx cpus. I've used it in the past to do some utils for the C64.
Plaz
-
I "think" it has the standard c libs.
-
What C support libraries are there for the C64?
The C support for the C64 is crap.
I used PowerC for about 6 months. Its a brutal, worthless endeavor.
Kinda neat, but ultimately useless. The limitations as far as hardware (disk swapping) goes is really irritating.
the 6502 + C don't really agree as far as trying to make a game. If you are doing something else, your mileage may vary. There is a windowing library I messed with, and a few other things.
As far as C o the real machine goes, PowerC is probably your best bet.
-
The C support for the C64 is crap.
I used PowerC for about 6 months. Its a brutal, worthless endeavor.
Kinda neat, but ultimately useless. The limitations as far as hardware (disk swapping) goes is really irritating.
the 6502 + C don't really agree as far as trying to make a game. If you are doing something else, your mileage may vary. There is a windowing library I messed with, and a few other things.
As far as C o the real machine goes, PowerC is probably your best bet.
6502 assembly only has something like 65 commands. It's very simple. As "efficient" as C might be, I think it's overkill for such a simple processor.
http://en.wikibooks.org/wiki/6502_Assembly
What are you trying to develop?
-
I want to build some boards with 6502 or 65C816.
I may get back into C64 and then C128 programming.
I may use them to make some roms.
-
I have an original Abacus Super C 128. It is kind of nifty, but has a terrible manual full of typos. I dunno about recomendations as I haven't gotten too far past "hello world":)
-
For me the best compiler for 6502 coding is CC65.
Coding directly on the C64 in C is very hard. On 1 MHz it is slow, the header files needs to be installed on one place and the memory is low for optimizations. Better use the CC65 crosscompiler and compile on much faster machine, then run and test the compiled code on the original C64. I have developed games on Amiga for C64 using the CC66 compiler (in C and Assembler), then packed them with cruncher like puchrunch and ran them. You can not compile and crunch executables easily on 1MHz 64 KB machine. I am not saying it is impossible. It's simply harder, slower, error prone, lacking serious tools and sometimes impractical to code in C directly on C64.
-
I gotta say from my experience, if you want to do embedded 6502 projects, your best bet is to learn assembly language. C is great and all, but for practical purposes, especially since you are probably gonna be banging hardware, you will want to do it at the machine level.
Now, for programming on the C64/128, C would probably turn out useful, if just academic. IIRC, C can be used to program GEOS applications (someone correct me on this, please,) which would seem to be much more practical as you are programming on top of an operating system with a hardware abstraction layer.
-
I have an original Abacus Super C 128. It is kind of nifty, but has a terrible manual full of typos. I dunno about recomendations as I haven't gotten too far past "hello world":)
I actually wrote a paint program for 80 column bitmap mode that mixed Basic 7 with machine language calls for doing the drawing. The 80 col chip had a fast block copy function built in. could copy 1-255 sequential bytes in 1 call. I believe it was masked too...but don't quote me, it's been a while.
-
I am deffinitely not leaving out assembly language.
I jut remember using the Read/Data in Basic.
I may even use hexadecimal at first to get a rom built.
Maybe I can load more data into ram with it.
cc65 sounds great, I have not run it yet.