Welcome, Guest. Please login or register.

Author Topic: Which C Compiler?  (Read 3186 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline GeneraleTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2005
  • Posts: 233
    • Show all replies
    • http://members.dodo.com.au/~izabellion
Which C Compiler?
« on: March 11, 2005, 04:47:51 AM »
Hi there!

Can anyone recommend a C compiler package for the bog standard amigas? ie A500. Just looking for something simple to set up so I can experiment with programming on an Amiga. The simpler the better. Just need the basic set of tools, libs and headers. I don't need the resources to write the next killer app!
I suppose it's wishful thinking to find one in ADF format.

I know there's an abundance of them on aminet, but I don't know which ones!!!

Any help would be great. Thanks  :-)
A500 (salvo): 1Mb RAM (512k chip, 512k SlowFast)
1x880k Floppy Disk, 1xIBM 540Mb 3.5\\"HDD KS1.3, WB1.3
1084S monitor. AT Keyboard!
A500 (Whitey): 512k RAM, 1x880k Floppy Disk, KS1.2, WB1.3
 

Offline GeneraleTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2005
  • Posts: 233
    • Show all replies
    • http://members.dodo.com.au/~izabellion
Re: Which C Compiler?
« Reply #1 on: March 12, 2005, 01:43:20 AM »
Thanks for the input all.

It' is an A500 w/1mb ram that I'd be using.
As for ADFs, it's just easier to transfer is all.

I'd love to use UAE as well, but I have a little problem with that. Well, a couple:
I'm only using a p200.
and, my OSes are NT4.0 (unsupp'd by winUAE) and RH linux 7.3.
Becuase the UAE source is broken I'm a little stuck. Don't suppose anyone has a copy of cpu_prefetch.h they can send me?  
It's too slow d/ling various versions of UAE looking for it.

Hopefully I'll have a hard drive set up in the next few days (If I've found all of my &^%$@^ mistakes), which will help matters a bit.

A plain old commandline is fine as an interface. GUIs are a nice bonus though. I'm kind of used to using CC/GCC anyway.
A500 (salvo): 1Mb RAM (512k chip, 512k SlowFast)
1x880k Floppy Disk, 1xIBM 540Mb 3.5\\"HDD KS1.3, WB1.3
1084S monitor. AT Keyboard!
A500 (Whitey): 512k RAM, 1x880k Floppy Disk, KS1.2, WB1.3
 

Offline GeneraleTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2005
  • Posts: 233
    • Show all replies
    • http://members.dodo.com.au/~izabellion
Re: Which C Compiler?
« Reply #2 on: March 12, 2005, 05:12:17 AM »
Downloading e-uae now...
It's smaller than UAE. Weird.

On a little aside, I've nearly finished the a500ide. Just need to finish connecting the grounds from the connectors. I hate using proto boards! Just hope all the connections are right  :-( ...Oh no...should have pulled the key pin. *cough* anyway, once that's up and running, I'll grab some of the suggested compilers.
Then it's "Hello World!" time!
A500 (salvo): 1Mb RAM (512k chip, 512k SlowFast)
1x880k Floppy Disk, 1xIBM 540Mb 3.5\\"HDD KS1.3, WB1.3
1084S monitor. AT Keyboard!
A500 (Whitey): 512k RAM, 1x880k Floppy Disk, KS1.2, WB1.3
 

Offline GeneraleTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2005
  • Posts: 233
    • Show all replies
    • http://members.dodo.com.au/~izabellion
Re: Which C Compiler?
« Reply #3 on: March 12, 2005, 06:04:29 AM »
tried compiling e-uae. won't do it.reckons there's a problem with joystick.c in /jd-linuxold on line 118. Reckons there's a parse error before 'char'. Went through and I couldn't see anything wrong though. As near as I could tell, everything's been declared and every opened thing has been closed. I hate these errors!
I don't even want stick support!! I don't know how to remove it though. Grr.

...1/2 hour later:
Crippled the init code so it thinks that there's no joysticks without looking. My comp seems to have a problem with char
  • structures. Or at least that one. Weird. Will look into it properly later.
A500 (salvo): 1Mb RAM (512k chip, 512k SlowFast)
1x880k Floppy Disk, 1xIBM 540Mb 3.5\\"HDD KS1.3, WB1.3
1084S monitor. AT Keyboard!
A500 (Whitey): 512k RAM, 1x880k Floppy Disk, KS1.2, WB1.3
 

Offline GeneraleTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2005
  • Posts: 233
    • Show all replies
    • http://members.dodo.com.au/~izabellion
Re: Which C Compiler?
« Reply #4 on: March 13, 2005, 12:15:50 AM »
This is the bit of code in joystick.c that trips it over:

static int init_joysticks(void)
{
    nr_joysticks = 0;
    js0 = -1; js1 = -1;
    char js_path[JS_MAXPATHLEN]; // temporary buffer for device name


Oh yeah, JS_MAXPATHLEN is defined as 20. and nr_joysticks, js0 and js1 are global. I can see no reason whatsoever why js_path should break.
I mean a whole lot of other people have used the latest version of E-UAE without probs, but it doesn't like this comp. Compiled fine after I crudely doctored the code (Like I said, don't care about sticks anyway).

Back to topic:

After I finish this post I'll be putting the last few wires on my IDE controller, so I'l have a hard disk (if it works), and unfortunately I can't see myself getting an accelerator card. They cost $$$. heh, unless someone wants to swap one for some 8-bit hardware, I haven't got a hope!

Well, after the controller is tested, I'll have a look at the various C software.
A500 (salvo): 1Mb RAM (512k chip, 512k SlowFast)
1x880k Floppy Disk, 1xIBM 540Mb 3.5\\"HDD KS1.3, WB1.3
1084S monitor. AT Keyboard!
A500 (Whitey): 512k RAM, 1x880k Floppy Disk, KS1.2, WB1.3