[M3devel] alloca(jmpbuf) vs. alloca(jmpbuf + frame)?

Jay K jay.krell at cornell.edu
Sun Aug 9 18:18:59 CEST 2015


https://github.com/modula3/cm3/commit/5b04afe9134e5807196ba6af13fa4cd28401f054
jmpbuf in frame changed from value to pointer.
 - Jay



Subject: Re: [M3devel] alloca(jmpbuf) vs. alloca(jmpbuf + frame)?
From: hosking at purdue.edu
Date: Sun, 9 Aug 2015 20:09:36 +1000
CC: m3devel at elegosoft.com
To: jay.krell at cornell.edu

What is the m3core change you refer to?

Sent from my iPad
On 9 Aug 2015, at 11:33 am, Jay K <jay.krell at cornell.edu> wrote:




I considered that I could lump the jmpbuf alloca in with its enclosing frame -- one slightly larger alloca,and the same amount of overall stack, minus the pointer or two per jmpbuf in the current scheme.

That would preclude the need for m3core change, which I'm sure will cause trouble,but is meant to be an ok thing to do.

However, that isn't perhaps as amenable to my next desired step in the C backend wrt jmp_buf.Though, I guess, I could have it both ways -- the compiler and runtime could share a flagand the frame be altered.

Thoughts?
 - Jay 		 	   		  
_______________________________________________
M3devel mailing list
M3devel at elegosoft.com
https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3devel
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20150809/d79ef8ed/attachment-0002.html>


More information about the M3devel mailing list