Welcome, Guest. Please login or register.

Author Topic: Best C compiler for Amiga?  (Read 20166 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Heinz

  • Full Member
  • ***
  • Join Date: Nov 2005
  • Posts: 154
    • Show only replies by Heinz
    • http://amidevcpp.amiga-world.de
Re: Best C compiler for Amiga?
« Reply #14 on: August 19, 2010, 08:31:40 AM »
Quote from: NovaCoder;575332
I couldn't really get on with AmiDev (too buggy),


I often see people posting that AmiDevCpp is buggy, but I dont get much bug reports from the people that are actually using it (DaveAE / AudioEvolution, Jahc / WookieChat etc.)

So would you please post proper bug reports or stop calling it buggy ?
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Best C compiler for Amiga?
« Reply #15 on: August 19, 2010, 08:49:35 AM »
Quote from: neofree;575337
What about a simple editor and a command line compiler?

Will anything like that run on an A500?

Thanks

SASC FTW!

I had a hard drive on my A500, A2000, A3000, A4000 and A1200 computers.  I assume you do too?
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Best C compiler for Amiga?
« Reply #16 on: August 19, 2010, 08:59:45 AM »
Quote from: neofree;575339
What was the standard compiler for A2000 back in the day?  Certainly it had a compiler available for purchase?
It was called Lattice C, which was later renamed to SAS/C.
SAS/C is just an improved version of Lattice C with MegaDebugger + other utils.

Quote
I don't care about MUI, RTG, etc.  I prefer original A500/A2000 (and A3000) computers ... If I want to keep upgrading an Amiga to be modern I might as well use a PC (which I have several).
You sound exactly like me.  This means our brainwaves are oscillating at the same frequency. :)  I Love my SASC so logically you will too :)

I have compiled many exes with it for OS 1.2, 1.3, 2.04, 3.0.  Works a treat.

It comes with a text editor which works together with the compiler.  Isn't that what they call an IDE?

But I am oldskool, I use CED + AmigaDos because I am too lazy to install the Arexx scripts to autolink CED and the compiler together.
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline mousehouse

Re: Best C compiler for Amiga?
« Reply #17 on: August 19, 2010, 10:26:13 AM »
Quote from: davideo;575358
@mousehouse

If the Maxon C++ documentation contains more information than the help file does then I would be interested in a copy of it please.

Dave G :cool:


I need to dig into a few boxes, if I don't get back to you next week please remind me ;-)
A3000T
 

Offline davideo

Re: Best C compiler for Amiga?
« Reply #18 on: August 19, 2010, 10:35:12 AM »
@mousehouse

No hurry and thanks.

Dave G :cool:
 

Offline amigadave

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Jul 2004
  • Posts: 3836
    • Show only replies by amigadave
    • http://www.EfficientByDesign.org
Re: Best C compiler for Amiga?
« Reply #19 on: August 19, 2010, 10:46:11 AM »
I have an extra copy of SASC, the last version, that I would be willing to sell with the printed manual binders, but I would have to check to see if the floppy disks are still readable after all this time.
How are you helping the Amiga community? :)
 

Offline psxphill

Re: Best C compiler for Amiga?
« Reply #20 on: August 19, 2010, 11:39:02 AM »
Quote from: neofree;575325
What is the best C compiler for Amiga?

 
I had SAS/C and used it on my a500, I had a 250mb hard drive, 6mb of ram and a 28mhz 68000 though.
 
Later when I moved to an A1200 (2gb hard drive, 48mb of ram and a 50mhz 68030) I found that the geekgadgets fork of gcc produced better code. I suspect that using a cross compiler on the PC is probably equivalent, you'll be able to most of your testing under WinUAE. Which will save you alot of time.
 
Your first choice will have to be based on target hardware. If you want to be able to run on Kickstart 1.3 then boopsi/MUI is out of the window. IIRC There was a gadtools for 1.3, but I never did any coding with it (or the 2.x+ version). I just remember a hard drive partitioning utility that came with it.
 
Otherwise you're limited to intuition or doing your own thing, intuition isn't actually that good. Which is why so much software opened it's own screen and had it's own look.
 
Serial port access should be possible on any Amiga compatible compiler. Either direct hardware banging or accessing through a device. A device is better because it will work if you have extra serial ports. Although you probably don't want to use the commodore supplied serial.device, there are much more optimised ones that I used back in the day (aminet should have them).

I would have thought there was a gdb based debugger you can use. However depending on what you're talking to on the serial port, you might find that debugging changes timing that will affect how your software works anyway. With anything realtime you're better off logging out data and then analysing it.
« Last Edit: August 19, 2010, 11:42:28 AM by psxphill »
 

Offline DrDekker

  • Sr. Member
  • ****
  • Join Date: Mar 2006
  • Posts: 325
    • Show only replies by DrDekker
Re: Best C compiler for Amiga?
« Reply #21 on: August 19, 2010, 12:43:04 PM »
How does DICE compare?
 
I've still got the stripped down version given away by Amiga Shopper many moons ago - the disks are still in their cellotaped plastic bags :shocked:
A1200, M-Tec 1230 @28MHz, FPU, MMU, 8Mb fast ram, SCSI card, 512Mb HD, Power CDROM drive, PS2 optical mouse
 

Offline NovaCoder

Re: Best C compiler for Amiga?
« Reply #22 on: August 19, 2010, 12:54:31 PM »
Quote from: Heinz;575360
I often see people posting that AmiDevCpp is buggy, but I dont get much bug reports from the people that are actually using it (DaveAE / AudioEvolution, Jahc / WookieChat etc.)

So would you please post proper bug reports or stop calling it buggy ?

[ You must login or register to view this Off-Topic! ]
Life begins at 100 MIPS!


Nice Ports on AmiNet!
 

Offline mongo

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 964
    • Show only replies by mongo
Re: Best C compiler for Amiga?
« Reply #23 on: August 19, 2010, 01:07:51 PM »
Quote from: rkauer;575348
Nobody into Cubic IDE? It is commercial and still available, have powerful cross-compiler but I think it is not 1.3~2.x friendly, nor have an enhanced debug tool. But it is the latest available commercial compiler.


Cubic IDE isn't a compiler.
 

Offline hardlink

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 586
    • Show only replies by hardlink
Re: Best C compiler for Amiga?
« Reply #24 on: August 19, 2010, 05:49:45 PM »
Quote from: NovaCoder;575336
Hiya,

Unless you have a RTG Amiga, you're better coding on a PC if you're after a decent IDE.

Basically for win32 native coding you either have AmiDevCPP or some other IDE using gcc (eg Eclipse).  


How well do these run under a real operating system using WINE?
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Best C compiler for Amiga?
« Reply #25 on: August 19, 2010, 05:53:31 PM »
@Hardlink
The trouble with gcc is that each new version creates noticeably worse code.  So for many years now it has been rather ridiculous.

So if you want decent code compiled then you need to either use some old gcc from 1990s such as gcc v2.95 or SASC 6.5 or VBCC.

Good luck :)
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline matthey

  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1294
    • Show only replies by matthey
Re: Best C compiler for Amiga?
« Reply #26 on: August 19, 2010, 07:43:47 PM »
Quote from: ChaosLord;575330
If you do not care about debugging then use VBCC.

Matt can give you more detailed infos

/me casts Summon Matt Hey

Matt Hey suddenly appears in a puff of mystical smoke :)

That mystical smoke really lingers ;). I think this is more your territory anyway. SAS/C is the fastest and one of the best development environment for a low end Amiga. He should not use any of the funky SAS/C functions to maintain portability and should test with VBCC from time to time to make sure his program compiles with both. VBCC is portable, easy to install, currently supported and free so it's the logical choice for portability. It is bigger, slower and does not have a debugger made for it as compared to SAS/C. Here's the link to VBCC...

http://sun.hasenbraten.de/vbcc/
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Best C compiler for Amiga?
« Reply #27 on: August 19, 2010, 07:55:20 PM »
My magic is getting a bit rusty and slow :D
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline Nostalgiac

  • Sr. Member
  • ****
  • Join Date: Dec 2006
  • Posts: 408
    • Show only replies by Nostalgiac
Re: Best C compiler for Amiga?
« Reply #28 on: August 19, 2010, 08:40:39 PM »
I was using Lattice on a A2000/3mb.. then later SAS/C 6.5 (I think) on my 2000/2630/5mb. As far as I remember always with CygnusED in which I had some macros to call the compiler.

As far as I know the original Amiga OS (certainly up to 3.1) was actually compiled under Lattice.

Tried Maxon... didnt like it. Never used anything newer then SAS though

ta
Tom UK
2000/2060/128mb/2320/2gb/C64-3D/Hydra-Aminet on OS 3.9

c128/1541/1750/1351 with Dolphin Dos and eprom burner
 

Offline neofreeTopic starter

  • Sr. Member
  • ****
  • Join Date: Dec 2002
  • Posts: 467
    • Show only replies by neofree
Re: Best C compiler for Amiga?
« Reply #29 from previous page: August 20, 2010, 01:22:55 AM »
Thanks for all your comments!  

I want to try a lower end compiler first..  Coding on the A500 might be counterproductive but I want to try it first.  If I feel the need to use WinUAE or Windows I'll look at some better options.

Does anyone know where I can get Lattice or SAS/C cheap? Or is it freeware now?

Thanks,

Neofree