CC65: New Linker Config files

You need an actual VIC.

Moderator: Moderators

Post Reply
User avatar
hawk
Vic 20 Afficionado
Posts: 342
Joined: Mon Jun 20, 2005 7:32 pm

CC65: New Linker Config files

Post by hawk »

An interesting announcement was made by Uz regarding CC65 that has the potential to impact/improve things for VIC-20 programmers. The introduction of multiple linker config files maintained per platform.

The announcement can be found here.

http://www.cc65.org/mailarchive/2009-09/6952.html

So have a think about the various linker config files that you think may be useful to VIC-20 programmers. The 32K one is an obvious one, but maybe also autostart carts. I'm not sure how the crt0.s file will be impacted, as often it also requires changes based on the type of output being generated.
Diddl
Vic 20 Afficionado
Posts: 425
Joined: Wed Jun 10, 2009 3:18 am

Post by Diddl »

cc65 is really cool, but it take very much memory for runtime.

Cause Code size CC65 doesn't appears feasible for VIC development. Most VIC user doesn't have a 32K RAM expansion.

But mayby some VIC user buy memory expansion if some CC65 games are available?
carlsson
Class of '6502
Posts: 5516
Joined: Wed Mar 10, 2004 1:41 am

Post by carlsson »

The runtime grows slowly, so while not really feasible for unexpanded VIC-20, I think with 8K expansion you can get away with using cc65. I have observed the same thing when I begun one of my C projects.

There is another C compiler, Quetzacoatl which supports a smaller subset of the language but may also have a smaller runtime. I found if you use conio instead of stdio and avoid as many library functions as possible, you can shave down cc65 binaries quite a bit as well.
Anders Carlsson

Image Image Image Image Image
User avatar
Kweepa
Vic 20 Scientist
Posts: 1314
Joined: Fri Jan 04, 2008 5:11 pm
Location: Austin, Texas
Occupation: Game maker

Post by Kweepa »

I started to use this on a new game and it's AWESOME.
Hopefully I'll be able to post about the game soon.

Also, it's perfectly possible to use with an unexpanded VIC if you don't use a lot of the runtime functions (printf for example, which adds nearly 2k!). The linker does a good job of only including what you need. Oh, what carlsson said.
Post Reply