emacs-devel
[Top][All Lists]
Advanced

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

Re: Compilation to native


From: Stefan Monnier
Subject: Re: Compilation to native
Date: 16 Apr 2004 10:44:29 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> 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.


        Stefan




reply via email to

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