Size Report for {{.pkgName}}

How much space is used by Go packages, C libraries, and other bits to set up the program environment.

The binary size consists of code, read-only data, and data. On microcontrollers, this is exactly the size of the firmware image. On other systems, there is some extra overhead: binary metadata (headers of the ELF/MachO/COFF file), debug information, exception tables, symbol names, etc. Using -no-debug strips most of those.

Program breakdown

You can click on the rows below to see which files contribute to the binary size.

{{range $i, $pkg := .sizes}} {{range $filename, $sizes := .Size.Sub}} {{end}} {{end}}
Package Code Read-only data Data BSS Binary size
{{.Name}} {{.Size.Code}} {{.Size.ROData}} {{.Size.Data}} {{.Size.BSS}} {{.Size.Flash}}
{{if eq $filename ""}} (unknown file) {{else}} {{$filename}} {{end}} {{$sizes.Code}} {{$sizes.ROData}} {{$sizes.Data}} {{$sizes.BSS}} {{$sizes.Flash}}
Total {{.sizeTotal.code}} {{.sizeTotal.rodata}} {{.sizeTotal.data}} {{.sizeTotal.bss}} {{.sizeTotal.flash}}