Skip to content

Binary size optimization #38

Description

@xarantolus

Just looked at the hello world example binary, and it seems to contain ~65KB of just null bytes:

$ LC_ALL=C tr -c '\0' '\n' < hello-world.bin | awk 'length > max {max=length} END {print max+0}'
65536

We probably want to look into this

Edit: seems to mostly be from alignment at the end of the build, maybe we want to change this:

info: Adding section: offset=0x0, size=0x9f60, align=65536
info: Adding section: offset=0x9f60, size=0x22414, align=65536

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions