Skip to content

Help: how to get smaller code size for a 'Hello world' example? #376

@TerryGuo

Description

@TerryGuo

Hi there,
I am building wasm 'Hello world' example from src/examples/wasm with command ~/tinygo/tinygo/bin/tinygo build -target wasm -o wasm.wasm main/main.go, the generated wasm file is pretty big 64KB. According to this Go Wiki, the size could be as smaller as 575 bytes. Perhaps I am doing something wrong. Any hints are welcomed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions