Skip to content

start function optimization #14

Closed
Closed
@blooddy

Description

@blooddy
function init():void {
}
init();

output

(module
 (type $v (func))
 (memory $0 1)
 (export "memory" (memory $0))
 (start $.start)
 (func $init (; 0 ;) (type $v)
  (nop)
 )
 (func $.start (; 1 ;) (type $v)
  (call $init)
 )
)

an unnecessary $.start function is created.
most likely this will automatically be corrected if you add inline function support (#12)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions