Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline nicholas

Re: Best C compiler for Amiga?
« on: 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 nicholas

Re: Best C compiler for Amiga?
« Reply #1 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 #2 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
 

Offline nicholas

Re: Best C compiler for Amiga?
« Reply #3 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