Welcome, Guest. Please login or register.

Author Topic: GCC 4.x or Clang for 68k  (Read 6279 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: GCC 4.x or Clang for 68k
« Reply #29 from previous page: May 16, 2014, 03:23:26 PM »
Quote from: LiveForIt;764481
In some ways C# is useless, its not a cross platform language, it has run time environment[sic] but no virtual machine, so its in the same category as VB, the only upside is that C# is more like C++ then VB, so you can use C# to proto type stuff.

As you can't do so many things wrong whit C# it is relatively easy to learn language.

Down side to C# is that if you can't type #ifdef and stuff like that.
Another downside C# depends on Microsoft class libraries.

Java has virtual machine, bit like running a emulator, should work every where provided all the Java classes are supported by OS, but they are not on AmigaOS so it more or less useless.

Besides Java is slow because its not native (not the language and not the VM).

Perhaps you've never heard of Mono?  Mono runs .NET assemblies on Linux and Mac.  Mono is under Shared Source license from Microsoft so as long as you don't care that .NET is patent encumbered, you can run C# on anything that runs Mono.  Just don't expect all the libraries that use unmanaged code from .NET to work on anything other than Windows.

Also, the latest versions of Android gut the Dalvik JVM and make it compile statically into native code at download.  I think the jAmiga JVM used on AOS 4.x has a similar way to statically compile .class files into native code as well.

Lastly, GCJ is a static Java compiler for GCC.  It depends on GNU Classpath being compiled into a shared object called LibGCJ.
« Last Edit: May 16, 2014, 03:28:56 PM by SamuraiCrow »
 

Offline rdolores

  • Full Member
  • ***
  • Join Date: Jul 2006
  • Posts: 195
    • Show only replies by rdolores
    • http://www.rdolores.com
Re: GCC 4.x or Clang for 68k
« Reply #30 on: May 16, 2014, 05:48:38 PM »
Quote from: nyteschayde;764345
What are the major barriers to having a modern version of either of these tools on 68k Amigas? I've seen a 4.5 version of GCC as a cross-compiler for cygwin and windows. Couldn't that be used to build a more modern version of GCC for native 68k?

I guess my questions are more centered around whether or not there is something major preventing it from happening or if it's just simply not been done. Anybody toyed with this? Karlos? Someone else?


I'm not a programmer, but I recall there was a C++ compiler for the Amiga made by HiSoft in the late 1990's.  Here's a link to a review of it:  

http://www.nightvzn.net/portfolio/web/amiga_monitor/archives/2_9html/hisoftc.htm

You may find more links to it on Google.
A1000 - 2 Floppies, 2 MB RAM, OS 1.0-1.3
A500 - 170 MB HD, 8 MB RAM, OS 1.3/2.04
A2000 - 350 MB HD, 8 MB RAM, A2630, OS 2.04
A2500 - 540 MB HD, 8 MB RAM, A2630, OS 3.9
A1200 - 20 GB HD, 64 MB RAM, Blizzard IV
Amithlon - 49 GB HD, 768 MB RAM, PIII-1G
AROS - 80 GB HD, 2 GB RAM, P4-3.2GHz
 

Offline nyteschaydeTopic starter

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 643
    • Show only replies by nyteschayde
    • http://www.nyteshade.com
Re: GCC 4.x or Clang for 68k
« Reply #31 on: May 16, 2014, 10:17:35 PM »
Even the final versions of StormC and SAS/C had C++ built-in. I think there several others.
Senior MTS Software Engineer with PayPal
Amigas: A1200T 060/603e PPC • A1200T 060 • A4000D 040 • A3000 (x2) • A2000 Vamp/V2 • A1200 (x4) • A1000 (x3) • A600 Vamp/V1 • A500
 

Offline nyteschaydeTopic starter

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 643
    • Show only replies by nyteschayde
    • http://www.nyteshade.com
Re: GCC 4.x or Clang for 68k
« Reply #32 on: May 16, 2014, 10:23:27 PM »
Ooh neat. Thanks for the pointer about ObjFW.
Senior MTS Software Engineer with PayPal
Amigas: A1200T 060/603e PPC • A1200T 060 • A4000D 040 • A3000 (x2) • A2000 Vamp/V2 • A1200 (x4) • A1000 (x3) • A600 Vamp/V1 • A500
 

Offline nicholas

Re: GCC 4.x or Clang for 68k
« Reply #33 on: May 16, 2014, 11:36:28 PM »
Quote from: nyteschayde;764571
Even the final versions of StormC and SAS/C had C++ built-in. I think there several others.

 Storm C v4 was GCC, SAS/C 7.01 has rudimentary C++ support but it's pre-STL.
“Een rezhim-i eshghalgar-i Quds bayad az sahneh-i ruzgar mahv shaved.” - Imam Ayatollah Sayyed  Ruhollah Khomeini