Hi,
You can use stack consumption feature to check maximal stack usage.
There are two steps to do it:
1. Linker Option to be enabled: -StackConsumption

2. Stack Consumption directives included in PRM.
I captured the related from help manual:

You can also find more information in help manual, search the doc with key word “STACK_CONSUMPTION”
Can this help you?
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------