Displaying 3 results from an estimated 3 matches for "numstackbyt".
Did you mean:
numstackbytes
2018 Feb 05
0
Dumping the static stack reservation sizes for functions
...bility?
There is an optimization remark emitted (in YAML) for the stack size:
$ clang -fsave-optimization-record foo.c
$ cat foo.opt.yaml
[…]
--- !Analysis
Pass: prologepilog
Name: StackSize
DebugLoc: { File: foo.c, Line: 3, Column: 0 }
Function: main
Args:
- NumStackBytes: '24'
- String: ' stack bytes in function'
...
[…]
For more information about optimization remarks I suggest Adam’s talk: https://llvm.org/devmtg/2016-11/Slides/Nemet-Compiler-assistedPerformanceAnalysis.pdf
Cheers,
—
Francis
>
> Thanks,
>
>...
2018 Feb 05
2
Dumping the static stack reservation sizes for functions
I would like to be able to emit a list of functions by name and their fixed
stack reservation size information, so that a programmer can gauge how much
stack they are likely to need in tightly constrained embedded systems.
Despite the rich number of options, the only option I can find that is even
relatively close is:
-warn-stack-size=<uint>
Is there some existing way of getting this
2018 Feb 05
1
Dumping the static stack reservation sizes for functions
...bility?
There is an optimization remark emitted (in YAML) for the stack size:
$ clang -fsave-optimization-record foo.c $ cat foo.opt.yaml […]
--- !Analysis
Pass: prologepilog
Name: StackSize
DebugLoc: { File: foo.c, Line: 3, Column: 0 }
Function: main
Args:
- NumStackBytes: '24'
- String: ' stack bytes in function'
...
[…]
For more information about optimization remarks I suggest Adam’s talk: https://llvm.org/devmtg/2016-11/Slides/Nemet-Compiler-assistedPerformanceAnalysis.pdf
Cheers,
—
Francis
>
> Thanks,
>
>...