[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compilation to native

From: Matthew Mundell
Subject: Re: Compilation to native
Date: 16 Apr 2004 16:06:41 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Stefan Monnier <address@hidden> writes:

> > Do the 1 and 2 byte constants for stack_ref, stack_set and stack_set2
> > cater for the maximum size of the stack?  Fbyte_code's maxdepth
> > parameter is a Lisp_Int, which suggests that the stack can be at least
> > as large as can be held in 29 bits.  Is there perhaps some other
> > restriction on the stack size?
> The "stack" in Fbyte_code is really just the activation frame: every time
> you enter a new byte-coded function, a new "stack" is created (allocated on
> the C stack via alloca).
> So it's extremely unlikely that maxdepth will ever be anywhere near
> 2^29.

OK, so only something like inlined recursion would use those depths,
and even stack_ref's one byte is likely to cover the depths used in
every function.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]