Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline nicholas

Re: Best C compiler for Amiga?
« Reply #44 from previous page: January 08, 2017, 02:09:33 PM »
The Atari guys have ported GCC 6.2 to 68k. :)

http://d-bug.mooo.com/beyondbrown/post/gcc-6/
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini
 

Offline Kernel

  • Sr. Member
  • ****
  • Join Date: Feb 2006
  • Posts: 292
    • Show only replies by Kernel
Re: Best C compiler for Amiga?
« Reply #45 on: January 08, 2017, 04:19:58 PM »
Quote from: NovaCoder;575448
SAS/C is freeware....you can get it over from the EAB file server (I think).

- note I just got Eclipse CDT working with gcc and Cygwin (only took me 3 days), now where's that cross compiler ;)


Is this actually freeware now?
 

Offline kolla

Re: Best C compiler for Amiga?
« Reply #46 on: January 08, 2017, 05:45:52 PM »
Quote from: nicholas;819316
The Atari guys have ported GCC 6.2 to 68k. :)


Just a bunch of hackers ;)
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline HaukeVB

  • Newbie
  • *
  • Join Date: Feb 2016
  • Posts: 24
    • Show only replies by HaukeVB
Re: Best C compiler for Amiga?
« Reply #47 on: January 08, 2017, 06:14:33 PM »
Quote from: Kernel;819322
Is this actually freeware now?
No, SAS/C isn't free nor is it open source... sadly...
| A1500, 2630, Merlin, XCalibur, Nexus, Emplant, 2320...
 

Offline Kernel

  • Sr. Member
  • ****
  • Join Date: Feb 2006
  • Posts: 292
    • Show only replies by Kernel
Re: Best C compiler for Amiga?
« Reply #48 on: January 08, 2017, 06:48:51 PM »
Well guess I try to get a copy through one of the sale sites then.  I used to own it too... long ago back in the early 90's but sold it with everything :/

Stooooopid me!
 

Offline wawrzon

Re: Best C compiler for Amiga?
« Reply #49 on: January 08, 2017, 08:31:29 PM »
Quote from: nicholas;819316
The Atari guys have ported GCC 6.2 to 68k. :)

http://d-bug.mooo.com/beyondbrown/post/gcc-6/


we have 6.1.0 on aros, still there are some issues with it sometimes especially on 68k, im trying to locate;). usually it is amiga specific stuff, like third party mui code, with all its specifics that gets accidenatlly optimized away.
 

Offline wawrzon

Re: Best C compiler for Amiga?
« Reply #50 on: January 08, 2017, 10:18:13 PM »
Quote from: alfredone;819307
You can try CodeBlock on Linux / Windows.

btw thanks for resurrecting this thread, probably a valuable info on using gdb with an aros/amiga/68k, from jason/ ezrec further above. probably something i was looking for all the time.
 

Offline nicholas

Re: Best C compiler for Amiga?
« Reply #51 on: January 10, 2017, 12:37:23 PM »
Quote from: kolla;819324
Just a bunch of hackers ;)


Yes, they'll never amount to anything and their code will be rubbish because they didn't get paid for doing it. ;)
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini
 

Offline nicholas

Re: Best C compiler for Amiga?
« Reply #52 on: January 10, 2017, 12:40:41 PM »
Quote from: wawrzon;819331
we have 6.1.0 on aros, still there are some issues with it sometimes especially on 68k, im trying to locate;). usually it is amiga specific stuff, like third party mui code, with all its specifics that gets accidenatlly optimized away.


Might be worth getting in touch with the Atari guys and collaborating where possible?

PS: Have you tried setting up a Godbolt server on Linux to use the aros-68k-cross-compiler to help find the optimization bugs?

http://godbolt.org
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini
 

guest11527

  • Guest
Re: Best C compiler for Amiga?
« Reply #53 on: January 10, 2017, 01:49:04 PM »
Quote from: nicholas;819440
Yes, they'll never amount to anything and their code will be rubbish because they didn't get paid for doing it. ;)

Actually, the 68K code generator of recent gcc versions *is* rubbish.

It's a clear demonstration of the open source problem: Instead of keeping the brilliantly working and well tested code generator of the 2.95 release active and try to get it working with a compatibility layer, the whole compiler was turned upside down. Certainly on good purpose, as to support more recent architectures, but that broke the entire lower layer which was, actually, no longer properly tested and checked.

Yes, the new code might be all polished, nicer, easier to maintain, supports C++ in its latest version, and C99 ... but just doesn't work brilliantly on old platforms, sorry.
 

Offline Thorham

  • Hero Member
  • *****
  • Join Date: Oct 2009
  • Posts: 1150
    • Show only replies by Thorham
Re: Best C compiler for Amiga?
« Reply #54 on: January 10, 2017, 02:29:57 PM »
Quote from: Thomas Richter;819444
It's a clear demonstration of the open source problem: Instead of keeping the brilliantly working and well tested code generator of the 2.95 release active and try to get it working with a compatibility layer, the whole compiler was turned upside down.
That is NOT the problem, people are the problem. People are ALWAYS the problem. This is like blaming the goto statement for making a mess of things, while the programmer made a mess of things (it's ALWAYS the programmer's fault).

They didn't have to turn everything upside down, they choose to.

Quote from: Thomas Richter;819444
Yes, the new code might be all polished, nicer, easier to maintain, supports C++ in its latest version, and C99 ... but just doesn't work brilliantly on old platforms, sorry.
I'm surprised it still supports 68k at all.
 

Offline kolla

Re: Best C compiler for Amiga?
« Reply #55 on: January 10, 2017, 03:36:01 PM »
Quote from: Thomas Richter;819444

Yes, the new code might be all polished, nicer, easier to maintain, supports C++ in its latest version, and C99 ... but just doesn't work brilliantly on old platforms, sorry.


You have data to back this up? Debian/m68k is using gcc6 and they have built around 10k of packages now, as well as the kernel, glibc etc. using newer gcc (currently gcc-6.2 I think).
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline kolla

Re: Best C compiler for Amiga?
« Reply #56 on: January 10, 2017, 03:39:37 PM »
Quote from: Thorham;819448
I'm surprised it still supports 68k at all.


m68k as embedded platform is still a commercial thing. But most of all this has to do with the ColdFire CPUs, and how gcc etc treats ColdFire and m68k as the same "family" of architectures. Improvements done for CF are most often also done for m68k.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline nicholas

Re: Best C compiler for Amiga?
« Reply #57 on: January 10, 2017, 03:55:16 PM »
Quote from: Thomas Richter;819444
Actually, the 68K code generator of recent gcc versions *is* rubbish.

It's a clear demonstration of the open source problem: Instead of keeping the brilliantly working and well tested code generator of the 2.95 release active and try to get it working with a compatibility layer, the whole compiler was turned upside down. Certainly on good purpose, as to support more recent architectures, but that broke the entire lower layer which was, actually, no longer properly tested and checked.

Yes, the new code might be all polished, nicer, easier to maintain, supports C++ in its latest version, and C99 ... but just doesn't work brilliantly on old platforms, sorry.

So you've heavily used GCC 6.2 on 68k to write C++14 code?

And even if what you say is true, why is this an "open source problem"? Does the latest MSVC++ compiler spit out 8086 real mode code that is as good as a 20yr older version? If not, why? " Closed source problem "? Nope, just technology moving on and getting left behind.
« Last Edit: January 10, 2017, 03:58:08 PM by nicholas »
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini