Исходники и презентации
This commit is contained in:
14
lessons/allocator/allocation_2/main.go
Normal file
14
lessons/allocator/allocation_2/main.go
Normal file
@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
// -l = disable inlining
|
||||
// -m = print optimization decisions
|
||||
// go build -gcflags '-l -m'
|
||||
|
||||
func getResult() *int {
|
||||
result := 200
|
||||
return &result
|
||||
}
|
||||
|
||||
func main() {
|
||||
_ = getResult()
|
||||
}
|
||||
Reference in New Issue
Block a user