Skip to content

AOT support for iOS platform #242

@keith2018

Description

@keith2018

hi,I have test WAMR on iOS platform, the result shows :

  1. the interpreter mode works fine on both iOS simulator and real device
  2. AOT mode works fine on simulator (target="x86_64") but fails on real device (target="aarch64")

My device is iPhone 8, iOS 13.3.1

The test wasm is compiled from simple C code

int test(int n) {
    return n + 42;
}

test.wasm.zip

imports: 
exports:
  [Function] i32 test(i32)

AOT compile command

./wamrc --target=aarch64 --size-level=0 --opt-level=0 -o test.aot test.wasm

Runtime error at file invokeNative_aarch64.s

thread #9, name = 'WebThread', stop reason = EXC_BAD_ACCESS (code=2, address=0x111488004)

20200428104759

it seems that the func_ptr is invalid

please help, thanks

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