[M3devel] Linux/ARM? Android?

Jay K jay.krell at cornell.edu
Sun Jun 20 21:43:57 CEST 2010


True, that m3cg is "most" buildable by gcc itself. That gets the most testing by gcc developers.
Almost any version will do though.
But it is buildable by other C compilers, such as Sun cc and OSF/1's C compiler.
Going forward, like to gcc 4.6, a C++ compiler might be needed.
OpenBSD uses gcc 3.x on most platforms and 2.x on some older ones.
gcc 4.4 and 4.5 actually require a C9x compiler but that is an accidental regression and getting fixed.
I found it using OSF/1 cc on Mika's machine. :)


On Irix I found some wierd old undocumented "O32" compiler and I think was able to use it eventually
to build modern gcc. It required some small patches to some tools, and it seemed to
perhaps even miscompile things, such that they had to later be rebuilt with gcc.


On HP-UX on HPPA the  bundled compiler is K&R. It can be used to build some gcc 3.x, which
can then be used to build gcc 4.x and/or presumably m3cg. I don't remember how far I got.
This "need" to go through gcc 3.x is documented on the gcc web pages.


 - Jay

----------------------------------------
> Date: Sun, 20 Jun 2010 18:54:49 +0000
> From: dabenavidesd at yahoo.es
> To: m3devel at elegosoft.com; m3 at sol42.com
> Subject: Re: [M3devel] Linux/ARM? Android?
>
> Hi:
> if you mean the c "native" compiler shouldn't be a problem, but one would expect differences between efficiency of both m3cg builds, I believe buildable for gcc 4 and 3 but nonetheless it shouldn't be the same in terms of the generated m3cg but for the M3 code which is what one is interested would be more like the same. If it is necessary to work with it I believe the process of installing a new gcc for c lang only is not too painful and is straight forward after you have a previous version to build a gcc 4 with a bootstrap compiler to build a self hosted c compiler.
> I don't know how much of the building process of m3cg is done by the gcc c compiler if it could be done at the same time such a build with current tree (which if there is I think is doable just selecting the proper options in the configure program command parameters, although not sure to build a full self hosted c gcc 4 compiler, but doable if you start with a bootstrap gcc 4 c compiler).
> Hope it helps and thanks in adavance
>
> --- El dom, 20/6/10, m3 at sol42.com  escribió:
>
>> De: m3 at sol42.com 
>> Asunto: Re: [M3devel] Linux/ARM? Android?
>> Para: m3devel at elegosoft.com
>> Fecha: domingo, 20 de junio, 2010 04:21
>> On 19 Jun 2010, at 7:04, Jay K
>> wrote:
>>> Hey, maybe we can get mips also. (there's decent
>> modern mips/linux hardware now, Chinese laptops)
>> Hmm, I have decent ancient mips/irix hardware I'd love to
>> get m3 running on. Will have to give it a try when I
>> get some free time. Is gcc 4 required (I have 3.3)?
>> Regards.
>> -Daniel
>
>
>
 		 	   		  


More information about the M3devel mailing list