Compiler Recommendations

Jerry Feldman gaf at blu.org
Tue Jan 8 07:41:26 EST 2008


On Mon, 7 Jan 2008 18:14:45 -0500
"Bill Bogstad" <bogstad at pobox.com> wrote:

> Depends on what you mean by "isomorphic to a stack".  A doubly linked list
> of function activation records allocated on a heap is a little
> different from a stack.
> When you consider that longjmp()/setjmp() will end up deallocating
> from the middle
> of the linked list, it looks even less like a stack to me...

Many data structures can be used to implement a stack. Regardless of
how it is implemented, a hosted C implementation must behave according
to the applicable standards. So, whether registers are used as
arguments, or whether a linked list is used, or whether there is a
stack instruction set the application must allow for recursion, as well
as set up the appropriate sequence points, and setjmp/longjmp, stdarg
and exit. 


-- 
--
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB  CA3B 4607 4319 537C 5846


More information about the Discuss mailing list