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.
CC65: New Linker Config files
Moderator: Moderators
- Diddl
- Vic 20 Afficionado
- Posts: 426
- Joined: Wed Jun 10, 2009 3:18 am
- Website: https://oe7twj.at/
- Location: Austria
- Occupation: software engineer
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.
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






- Kweepa
- Vic 20 Scientist
- Posts: 1303
- Joined: Fri Jan 04, 2008 5:11 pm
- Location: Austin, Texas
- Occupation: Game maker
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.
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.