Welcome, Guest. Please login or register.

Author Topic: GCC 4.x or Clang for 68k  (Read 6334 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 all replies
GCC 4.x or Clang for 68k
« on: May 13, 2014, 03:18:47 AM »
Clang would require a new backend be written for LLVM and a new memory handler since a full Clang executable requires 1gig to run.

As for a newer GCC, the you could cross-develop from AROS and then run ELF2HUNK on the executable.
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show all replies
GCC 4.x or Clang for 68k
« Reply #1 on: May 13, 2014, 03:59:42 AM »
It works on AROS 68k but uses the ELF loader so it probably won't backport to AmigaOS easily.
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show all replies
Re: GCC 4.x or Clang for 68k
« Reply #2 on: May 14, 2014, 03:50:59 PM »
Quote from: bloodline;764366
Are you sure? I run clang on both my 256meg and my 512meg Raspberry Pis


Well, running it is less demanding than building it.  Building Clang requires 2 Gigs of RAM on my x86 Mac Mini.  I think it might work on 256 megs on 68k but you'd still have to have a lot of Fast RAM to run it in its current state.

My idea for a memory system involves making each optimization pass a separate shared library and make the memory system close passes that are not currently being used so it can flush them out of memory if needed.
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show all replies
Re: GCC 4.x or Clang for 68k
« Reply #3 on: 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 »