Is there a way to force emitting of stack frame for a specific function?
Johan
j at j.nl
Fri Oct 9 20:02:50 UTC 2020
On Friday, 9 October 2020 at 02:01:30 UTC, Andrey Zherikov wrote:
>
> The question: is it possible to tell compiler to always
> generate stack frame for my stackFrame function?
> "pragma(inline, false)" doesn't help here - the result is
> completely the same.
(Do you mean a stack frame, or a frame pointer?)
If you use LDC, you can specify --frame-pointer=all.
bin/ldc2 --help | grep "frame"
--frame-pointer=<value> - Specify frame pointer elimination
optimization
=all - Disable frame pointer elimination
=non-leaf - Disable frame pointer elimination
for non-leaf frame
=none - Enable frame pointer elimination
cheers,
Johan
More information about the Digitalmars-d-learn
mailing list