Jonathan Brandmeyer <jbrandme...@planetiq.com> wrote: > What is the upper bound for stack consumption under the > SQLITE_USE_ALLOCA compile-time option? I see that there are a number > of configurable size limits available as compile-time and/or run-time > options. Which ones affect the maximum alloca? > > Thanks, > Jonathan Brandmeyer
I recall using this tool to measure stack usage on Linux: https://github.com/d99kris/stackusage It gives you the stack high watermarks for each thread, with no noticeable runtime overhead. Of course, there is no guarantee that you hit the theoritical worse case for stack usage while using the tool, but at least you get at least the typical stack usage. You could try measuring with and without -DSQLITE_USE_ALLOCA. Other relevant defines that may influence stack usage: SQLITE_SPELLFIX_STACKALLOC_SZ SQLITE_SMALL_STACK Dominique _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users