Atari target for Calypsi 68k C compiler

GFA, ASM, STOS, ...
Post Reply
vinz6751
Atari freak
Atari freak
Posts: 62
Joined: Sat Nov 15, 2014 10:35 am
Location: France
Contact:

Atari target for Calypsi 68k C compiler

Post by vinz6751 »

Hello !

Håkan Thörngren has created the Calypsi cross-compiler tool chain https://www.calypsi.cc/. It targets the 68000 (and soon 68020+), 65816/6502 features a nice compiler, assembler and linker, and the documentation is really neat, check it out !
It allows coding PC-relative code, writing interrupt handlers etc.
This compiler is under active development and its primary target are the Foenix Retro System computers http://c256foenix.com.

Since this compiler is under active development, we can still provide feedback and influence its development. I asked Håkan if we could support producing Atari-compatible output (executable, DRI/GST ?), he said we would consider it if there is enough interest.

So please post here to manifest your interest ! Then we can come to Håkan and show it ! He also accepts donations so that might also be an incentive to get that job done ;) He's really nice and very talented ; must be to have come up with a whole compiler toolchain by himself !
He also has his own room "ht313" in Foenix Retro Systems discord server https://discord.gg/2GB47Vjf if you want to follow the development.

Vinz/MPS
User avatar
shoggoth
Nature
Nature
Posts: 1447
Joined: Tue Aug 01, 2006 9:21 am
Location: Halmstad, Sweden
Contact:

Re: Atari target for Calypsi 68k C compiler

Post by shoggoth »

Awesome. Yeah, I think it would be really good to have some more compiler choices, seems very interesting.
Ain't no space like PeP-space.
User avatar
metalages
Captain Atari
Captain Atari
Posts: 482
Joined: Thu Jun 06, 2013 5:14 pm
Location: France
Contact:

Re: Atari target for Calypsi 68k C compiler

Post by metalages »

A reason why i still compile with pure c is the fact the startup code is provided and it is easy to rewrite. In particular doing this allows to compile without any standard lib with limited overhead ( useful for demos )
vinz6751
Atari freak
Atari freak
Posts: 62
Joined: Sat Nov 15, 2014 10:35 am
Location: France
Contact:

Re: Atari target for Calypsi 68k C compiler

Post by vinz6751 »

In case you haven't seen, the Calypsi 5.1 compiler is out. There is a 68K simulator so you can test stuff on your native OS, the support of inline functions has been added. There is support for the 68020, and the assembler supports up to the 68060, and you get to choose the "by stack" calling convention of the default register-based calling convention.
Håkan Thörngren is doing an absolutely amazing job !
https://www.calypsi.cc/

I made some bindings for TOS here
https://github.com/vinz6751/Calypsi-for-TOS
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3412
Joined: Sun Aug 03, 2014 5:54 pm

Re: Atari target for Calypsi 68k C compiler

Post by ThorstenOtto »

vinz6751 wrote: Mon Dec 04, 2023 7:01 pm I made some bindings for TOS here
https://github.com/vinz6751/Calypsi-for-TOS
From what i've seen, the default calling convention for calypsi expects all registers except d0/d1/a0/a1 to be preserved, while calling any BIOS/XBIOS/GEMDOS function may clobber d2/a2. So you may have to preserve them in your bindings.
It also seem to support inline assembly similar to gcc, maybe that is more convenient for that purpose.
vinz6751
Atari freak
Atari freak
Posts: 62
Joined: Sat Nov 15, 2014 10:35 am
Location: France
Contact:

Re: Atari target for Calypsi 68k C compiler

Post by vinz6751 »

Very good remarks indeed, thank you!
vinz6751
Atari freak
Atari freak
Posts: 62
Joined: Sat Nov 15, 2014 10:35 am
Location: France
Contact:

Re: Atari target for Calypsi 68k C compiler

Post by vinz6751 »

I forgot to mention, Calypsi can generate TOS executables.
Post Reply

Return to “Coding”