From mboxrd@z Thu Jan 1 00:00:00 1970 References: In-Reply-To: Mime-Version: 1.0 (1.0) Content-Type: multipart/alternative; boundary=Apple-Mail-FF5CFAA8-1D24-45A9-8F8D-7062C356227C Message-Id: Content-Transfer-Encoding: 7bit From: Bakul Shah Date: Mon, 16 Jan 2012 11:03:43 -0800 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] assembly syntax in plan 9 Topicbox-Message-UUID: 5dfbaeb8-ead7-11e9-9d60-3106f5b1d025 --Apple-Mail-FF5CFAA8-1D24-45A9-8F8D-7062C356227C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii How do you deal with longjmp? On Jan 16, 2012, at 10:51 AM, Comeau At9Fans wrote= : > On Mon, Jan 16, 2012 at 10:41 AM, Bakul Shah wrote: > A frame pointer is needed for C99's variable length arrays but not otherwi= se. Only an issue if ever plan9 C is extended to handle C99 or C1x. gcc has t= o do the right thing even with -fno-frame-pointer. >=20 > What we do in problematic cases with Comeau is to generate code to arrange= for the allocation of the VLA on the heap. I'm not saying this is perfect,= but at least it gets the feature implementable and up and running as "a por= table implementation" versus perhaps not being able to implement it at all o= n some platforms. --Apple-Mail-FF5CFAA8-1D24-45A9-8F8D-7062C356227C Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=utf-8
How do you deal with longjmp?

On Jan 16, 2012, at 10:51 AM, Comeau At9Fans <comeauat9fans@gmail.com> wrote:

On Mon, Jan 16, 2012 at 10:41 AM, Bakul Shah <bakul@bitblocks.com> wrote:
A frame pointer is needed for C99's variable length arrays but not otherwise. Only an issue if ever plan9 C is extended to handle C99 or C1x. gcc has to do the right thing even with -fno-frame-pointer.

What we do in problematic cases with Comeau is to generate code to arrange for the allocation of the VLA on the heap.  I'm not saying this is perfect, but at least it gets the feature implementable and up and running as "a portable implementation" versus perhaps not being able to implement it at all on some platforms.
--Apple-Mail-FF5CFAA8-1D24-45A9-8F8D-7062C356227C--