You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/omitframepointer.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,30 @@ omitframepointer - This page was auto-generated. Feel free to help us improve th
4
4
omitframepointer (value)
5
5
```
6
6
7
-
### Parameters ###
7
+
### Parameters
8
8
9
9
`value` is one of:
10
10
11
-
*`Default`: needs documentation
12
-
*`On`: needs documentation
13
-
*`Off`: needs documentation
11
+
*`Default`: Use the compiler’s default behavior. The compiler decides whether to omit the frame pointer based on optimization settings and target architecture.
12
+
*`On`: Omit the frame pointer. This frees up a register for optimization, resulting in smaller and faster code, but makes debugging and stack traces less reliable.
13
+
*`Off`: Keep the frame pointer. This provides more accurate stack traces and easier debugging at the cost of some optimization opportunities.
14
14
15
-
## Applies To ###
15
+
## Applies To
16
16
17
17
The `config` scope.
18
18
19
-
### Availability ###
19
+
### Availability
20
20
21
21
Premake 5.0.0 alpha 14 or later.
22
22
23
-
### Examples ###
23
+
### Examples
24
24
25
25
```lua
26
-
omitframepointer (value)
27
-
```
26
+
-- Keep frame pointer in debug builds for better stack traces
27
+
filter"configurations:Debug"
28
+
omitframepointer"Off"
28
29
30
+
-- Omit frame pointer in release builds for performance
0 commit comments