vbcc optimizing C compiler now with Apple IIgs support

4 posts / 0 new
Last post
vbc
Offline
Last seen: 23 hours 35 min ago
Joined: Jan 22 2025 - 10:30
Posts: 2
vbcc optimizing C compiler now with Apple IIgs support

Hello,

I have just released the first version of a port of the vbcc compiler to the 65816 at: http://www.compilers.de/vbcc.html

It contains a C compiler, assembler, linker and ports of a C Library for the Apple IIgs, SNES and a simulator (which can easily be adapted to SBCs or embedded targets).

A few of the good things:

- compiler is under active development
- supports C99 (variable-length arrays, designated initializers etc.)
- generates optimized code (see dhrystones in sample directory)
- supports near-, far- and huge-pointers and memory models
- (limited) floating point support based on Steve Wozniaks code
- support for SNES hardware multiplication/division
- support for writing interrupt handlers
- attributes for putting variables into zero page
- supports file I/O on selected targets (IIgs)

The README inside the archive contains a short intro regarding installation and usage. There is also a sample directory with a few demo programs.

As I am not very familiar with this machine, I would appreciate some feedback from people with more experience.

Offline
Last seen: 10 hours 10 min ago
Joined: Jul 5 2018 - 09:44
Posts: 2615
This compiler is pretty

This compiler is pretty interesting.  A lot of the older ones that targeted the Apple II have been pretty limited like Aztec C back in the day or cc65.  I need to check this one out and see how well the version for 65C02 works.  65816 is interesting too but most of the time I am using a //e instead of a IIgs.  Although I do have a couple 65802 for //e which might work with the 65816 targeted compiler.

 

vbc
Offline
Last seen: 23 hours 35 min ago
Joined: Jan 22 2025 - 10:30
Posts: 2
The 6502 version has no

The 6502 version has no library for Apple II yet (so many 6502 targets...). I will probably add support in the next release of vbcc6502.

Offline
Last seen: 10 hours 10 min ago
Joined: Jul 5 2018 - 09:44
Posts: 2615
vbc wrote: The 6502 version
vbc wrote: The 6502 version has no library for Apple II yet (so many 6502 targets...). I will probably add support in the next release of vbcc6502.

 

Sounds good, I will check it out when you do!

 

Log in or register to post comments