[llvm-dev] [Clang] memory allocation
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Tue Nov 26 04:21:02 PST 2019
On Tue, 26 Nov 2019 at 12:05, Mohammad Norouzi via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> However, OK is called inside nqueens. So, the same stack space cannot be used/reused for both of them.
nqueens is also called inside nqueens because it's a recursive
implementation, and it's those two calls within nqueens that reuse the
stack space. Notice that the reuse is *after* ok gets called.
More information about the llvm-dev