Welcome, Guest. Please login or register.

Author Topic: C For C64  (Read 3104 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline trekiejTopic starter

C For C64
« on: July 06, 2010, 04:41:02 AM »
Anyone have experience with C on the C64?
Maybe some one could recommend a compiler.
Thanks.
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline efrenmgp

Re: C For C64
« Reply #1 on: July 06, 2010, 05:23:30 AM »
There was Abacus Super C 64. Although I guess is hard to find now... That's the only one I know of.

This page list it but it has no price.

More info here
 

Offline trekiejTopic starter

Re: C For C64
« Reply #2 on: July 06, 2010, 06:08:38 AM »
Thanks.
I have Power C.
I will try it on c64 forever.
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline trekiejTopic starter

Re: C For C64
« Reply #3 on: July 17, 2010, 07:56:55 AM »
The Documents say if necessary, compile two separate pieces and link them together.
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline RobertB

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Jun 2005
  • Posts: 1839
  • Thanked: 23 times
    • Show only replies by RobertB
    • http://www.dickestel.com/fcug.htm
Re: C For C64
« Reply #4 on: July 17, 2010, 10:16:16 AM »
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
 

Offline Linde

  • Sr. Member
  • ****
  • Join Date: Mar 2004
  • Posts: 457
    • Show only replies by Linde
    • http://hata.zor.org/
Re: C For C64
« Reply #5 on: July 17, 2010, 11:07:50 AM »
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: C For C64
« Reply #6 on: July 17, 2010, 11:16:30 AM »
What C support libraries are there for the C64?

Offline Plaz

Re: C For C64
« Reply #7 on: July 17, 2010, 01:46:30 PM »
Quote from: Linde;570803
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
 

Offline trekiejTopic starter

Re: C For C64
« Reply #8 on: July 17, 2010, 05:16:10 PM »
I "think" it has the standard c libs.
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline Arkhan

  • Sr. Member
  • ****
  • Join Date: Aug 2007
  • Posts: 490
    • Show only replies by Arkhan
    • http://www.aetherbyte.com
Re: C For C64
« Reply #9 on: July 19, 2010, 03:16:20 PM »
Quote from: bloodline;570804
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.
I am a negative, rude, prick.  


"Aetherbyte: My fledgling game studio!":  << Probably not coming to an Amiga near you because you all suck! :roflmao:
 

Offline Louis Dias

Re: C For C64
« Reply #10 on: July 19, 2010, 03:39:05 PM »
Quote from: Arkhan;571009
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?
 

Offline trekiejTopic starter

Re: C For C64
« Reply #11 on: July 19, 2010, 05:53:20 PM »
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.
Amiga 2000 Forever :)
Welcome to the Planar System.
 

Offline redrumloa

  • Original Omega User
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 10126
    • Show only replies by redrumloa
Re: C For C64
« Reply #12 on: July 19, 2010, 06:04:24 PM »
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":)
Someone has to state the obvious and that someone is me!
 

Offline drHirudo

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 539
    • Show only replies by drHirudo
    • http://hirudov.com
Re: C For C64
« Reply #13 on: July 19, 2010, 06:48:59 PM »
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.

Offline LoadWB

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show only replies by LoadWB
Re: C For C64
« Reply #14 on: July 19, 2010, 06:50:33 PM »
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.