C compilers

General discussions related to the Altair 8800 Clone

C compilers

Postby jibanes » February 9th, 2014, 7:24 pm

There's a few C compilers noteworthy, and I could use one of them.

I've noticed that BDS C is now freely available: http://www.bdsoft.com/resources/bdsc.html
But it seems that the version packaged is for z80, not 8080 ( http://www.schorn.ch/altair_6.php ), Anyone knows how to create a 8080 version of such compiler?
It probably implies re-linking it I imagine.

Thanks!
jibanes
 
Posts: 58
Joined: February 8th, 2014, 1:07 pm

Re: C compilers

Postby AltairClone » February 9th, 2014, 9:47 pm

The BDS C compiler will run on 8080 computers. I've installed and run it on the Altair Clone in the past. Let me make a disk to get you started and I'll post it.

Mike
AltairClone
Site Admin
 
Posts: 637
Joined: April 5th, 2013, 10:55 am

Re: C compilers

Postby AltairClone » February 9th, 2014, 10:27 pm

I uploaded a ready to use disk image containing the BDS C compiler to the CP/M 2.2 folder accessible from support page (http://altairclone.com/downloads/cpm/CPM%202.2/).

I'll add documentation from the BDS C website and update the ReadMe file in the CP/M support directory soon.

Great idea to get a C compiler up and running -- thanks!

Mike
AltairClone
Site Admin
 
Posts: 637
Joined: April 5th, 2013, 10:55 am

Re: C compilers

Postby jibanes » February 9th, 2014, 11:50 pm

Mike,

Could you tell me what were the steps taken to get a z80 application (with source) running on 8080? Or at least some guidelines.


Thx
jibanes
 
Posts: 58
Joined: February 8th, 2014, 1:07 pm

Re: C compilers

Postby jibanes » February 10th, 2014, 12:33 am

Haha, this is so cool, I did write a little (recursive) fibonacci really quick, and then I realized (around fib(23)) that ints are 16 bits only :)
I forgot how things have changed, I think those constraints make it even more fun.
jibanes
 
Posts: 58
Joined: February 8th, 2014, 1:07 pm

Re: C compilers

Postby AltairClone » February 10th, 2014, 10:27 am

jibanes wrote:Mike,

Could you tell me what were the steps taken to get a z80 application (with source) running on 8080? Or at least some guidelines.

Thx


The BDS C compiler is native 8080 code, not Z80 code, so I didn't have to do anything!

In addition to the standard CP/M release, there is also a ZCPR3 release. This version uses the exact same compiler and linker, however, the run-time library is different. I haven't looked, but the run time library might use some Z80-specific code.

Mike
AltairClone
Site Admin
 
Posts: 637
Joined: April 5th, 2013, 10:55 am

Re: C compilers

Postby jibanes » February 10th, 2014, 11:25 pm

BDS C seems pretty good actually, it's missing a lot of useful stuff (floats, etc) but overall, very workable. This clearly opens the doors to many more things.
jibanes
 
Posts: 58
Joined: February 8th, 2014, 1:07 pm

Re: C compilers

Postby virtualaltair » March 2nd, 2014, 2:34 pm

>This clearly opens the doors to many more things.

I remember BDS C came with a communications program. I think the name was Teledit. The program might be useful and give C code examples for XMODEM protocol. I can't remember features, but think file transfer was included. Maybe Y-Modem support too.
virtualaltair
 
Posts: 30
Joined: June 20th, 2013, 11:47 pm
Location: New Mexico, USA


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 13 guests

cron