by adwn · 8y ago · 0 comments
Many (but not all) problems become a whole lot easier if you restrict them to sane inputs. Determining an upper bound on stack size is especially interesting for, e.g., embedded software, and the intersection of "sane embedded program" and "program with complex stack size behavior" is rather small.
From writing:
TaskCreate(&some_func, 2048 /* Hope this is enough stack */)
To: TaskCreate(&some_func, sizeof(some_func))
would be amazing.