Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscounting func size in internal/sizebench #16

Open
egonelbre opened this issue Jan 20, 2023 · 0 comments
Open

Miscounting func size in internal/sizebench #16

egonelbre opened this issue Jan 20, 2023 · 0 comments

Comments

@egonelbre
Copy link
Member

Currently there seems to be some padding included in the go tool nm -size output. objdump ends up printing this:

  :-1                   0x1093ae5               cc                      INT $0x3
  :-1                   0x1093ae6               cc                      INT $0x3
  :-1                   0x1093ae7               cc                      INT $0x3
  :-1                   0x1093ae8               cc                      INT $0x3
  :-1                   0x1093ae9               cc                      INT $0x3
  :-1                   0x1093aea               cc                      INT $0x3
  :-1                   0x1093aeb               cc                      INT $0x3
  :-1                   0x1093aec               cc                      INT $0x3
  :-1                   0x1093aed               cc                      INT $0x3
  :-1                   0x1093aee               cc                      INT $0x3
  :-1                   0x1093aef               cc                      INT $0x3
  :-1                   0x1093af0               cc                      INT $0x3
  :-1                   0x1093af1               cc                      INT $0x3
  :-1                   0x1093af2               cc                      INT $0x3
  :-1                   0x1093af3               cc                      INT $0x3
  :-1                   0x1093af4               cc                      INT $0x3
  :-1                   0x1093af5               cc                      INT $0x3
  :-1                   0x1093af6               cc                      INT $0x3
  :-1                   0x1093af7               cc                      INT $0x3
  :-1                   0x1093af8               cc                      INT $0x3
  :-1                   0x1093af9               cc                      INT $0x3
  :-1                   0x1093afa               cc                      INT $0x3
  :-1                   0x1093afb               cc                      INT $0x3
  :-1                   0x1093afc               cc                      INT $0x3
  :-1                   0x1093afd               cc                      INT $0x3
  :-1                   0x1093afe               cc                      INT $0x3
  :-1                   0x1093aff               cc                      INT $0x3

Write better func size measurement.

@egonelbre egonelbre changed the title Miscounting func size in benchsize Miscounting func size in internal/sizebench Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant