[M3devel] Are all 5 gcc branches used?

Jay K jay.krell at cornell.edu
Thu Jun 4 01:04:43 CEST 2015


Once it is working, the way you use it is one of:
./do-cm3-all.py c buildship
or change M3_BACKEND_MODE to "C" in the config file.
and it handles nested functions even...
You can bootstrap with./boot1.py c
which gives you a directory of c files and a makefile.cd there and make or nmake.

But let me fix it first. It got broken recently.
 - Jay


From: jay.krell at cornell.edu
To: hendrik at topoi.pooq.com; m3devel at elegosoft.com
Date: Wed, 3 Jun 2015 22:58:50 +0000
Subject: Re: [M3devel] Are all 5 gcc branches used?




It was totally working.

I built the whole Darwin x86/amd64 system, ran gui apps.Got AMD64_NT working.Built all four variations of Solaris I think.Maybe cross bootstrapped but didn't c_compile other systems.I386_NT was probably working.

And now if you try it there are assertion failures, like about right shiftinga signed type. Some errors about duplicate typedefs.

It has bit-rotted slightly. Maybe with the Unicode work?

Anyway, I'll repair it.

It really was fully working.Debugging was getting better, better than non-m3gdb systems.There is still a uniquifier appended to every local.In case you have;
int a;{ int a;{ int a;}}}
we give youint a_1;int a_2;int a_3;

I need to fix it to only uniqueify in the presence of duplicates.

Globals should be made debuggable instead of just being an array of bytes.Other than globals, structs have fields.TEXTs aren't viewable I think.

But for systems like Darwin and NT and HP-UX that don't support m3gdb, debugging is already better.Build times are noticeably regressed.

 - Jay



> Date: Wed, 3 Jun 2015 15:07:46 -0400
> From: hendrik at topoi.pooq.com
> To: m3devel at elegosoft.com
> Subject: Re: [M3devel] Are all 5 gcc branches used?
> 
> On Wed, Jun 03, 2015 at 06:04:04PM +0000, Jay K wrote:
> > 
> > Or we could ditch gcc entirely and use the C backend and/or LLVM, 
> > hopefully both unpatched. :)
> 
> Weren't  you working on a C backend for Modula a year or two ago?
> What happened to it?  Is it available for use?  If so, where and how?
> 
> -- hendrik
 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150603/1ea59309/attachment-0002.html>


More information about the M3devel mailing list