Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline psxphill

Re: GCC 4.x or Clang for 68k
« on: May 13, 2014, 12:08:47 PM »
Quote from: SamuraiCrow;764348
It works on AROS 68k but uses the ELF loader so it probably won't backport to AmigaOS easily.

As long as the compiler can cope with generating calls to amiga libraries then getting elf converted to hunk should be relatively simple. Either as a stand alone step, or integrated into ld.
 
http://www.evillabs.net/wiki/index.php/AROS_m68k-amiga#Feb_8.2C_2011:_ELF2HUNK_utility
 
if the wiki doesn't work then scroll down the cached page
 
http://webcache.googleusercontent.com/search?q=cache:VHx5YO702BgJ:www.evillabs.net/wiki/index.php/AROS_m68k-amiga&hl=en&gl=uk&strip=1
« Last Edit: May 13, 2014, 12:16:04 PM by psxphill »
 

Offline psxphill

Re: GCC 4.x or Clang for 68k
« Reply #1 on: May 13, 2014, 01:55:15 PM »
Quote from: bloodline;764366
Doesn't AROS 68k support both Amiga Hunks and ELF!?

I believe so, but I got the impression that the m68k gcc 4 port for aros compiler only generates elf.
 

Offline psxphill

Re: GCC 4.x or Clang for 68k
« Reply #2 on: May 14, 2014, 11:33:30 PM »
Quote from: AJCopland;764436
If you want a good argument against C it's the Heartbleed bug, a bug that exists almost solely because of someone writing something in C for which there is no good argument to use the language.

The Heartbleed bug could just as easily have been introduced if it had been written in C++. Someone who shouldn't be left unsupervised near a computer ended up writing security code that was used in everything, because "it's open source it must be good".
 
If you end up writing something in C with
 
extern myobject *alloc_myobject();
extern void func_on_myobject(myobject *x, int y);
 
then you should be using C++. Because if that is all you're using in terms of C++ features then the code generated should be pretty much the same.