Advanced Go (Golang)
Q67 / 100

What is the Go linker's link-time optimization (LTO) and dead code elimination?

Correct! Well done.

Incorrect.

The correct answer is B) The Go linker statically removes unreachable functions and packages from the binary, keeping binaries small

B

Correct Answer

The Go linker statically removes unreachable functions and packages from the binary, keeping binaries small

Explanation

Go's linker performs dead code elimination. Only reachable code from main (and init) is included. This is why Go binaries are self-contained and relatively small.

Progress
67/100