Currently, stack frame generation is tied to the -release command-line option. The -release option also controls other things, such as bounds checking, inclusion of asserts/contracts/invariants etc. It is sometimes useful to have stack frames in an optimized executable, for example for usage with a 3rd-party profiler. Therefore, there should be an additional option to control just stack frame generation.
*** Issue 6757 has been marked as a duplicate of this issue. ***
https://github.com/D-Programming-Language/dmd/commit/785fd4701f47dc77224b7b7c8b94c81f537b2b09 https://github.com/D-Programming-Language/dmd/commit/acddd7fc4a9fbc8353d0c8c6ace64194d3c9e358