Giter Club home page Giter Club logo

Comments (2)

wenyongh avatar wenyongh commented on May 28, 2024

Hi, WAMR is supposed to be able to run in some resource limited environments, may be you can build WAMR with some features enabled or disabled:

  • Use global heap: initialize a global byte buffer as a heap allocator and allocate memory from it, so as not to call system malloc/free - cmake -DWAMR_BUILD_GLOBAL_HEAP_POOL=1.
  • Disable libcwasi: cmake -DWAMR_BUILD_LIBC_WASI=0, and even disable libc-builtin if needed: cmake -DWAMR_BUILD_LIBC_BUILTIN=0
  • Disable some other features: cmake -DWAMR_DISABLE_WAKEUP_BLOCKING_OP=1 -DWAMR_DISABLE_HW_BOUND_CHECK=1 -DWAMR_DISABLE_WRITE_GS_BASE=1 -DWAMR_BUILD_QUICK_AOT_ENTRY=0

For the above options, please refer to: https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/build_wamr.md#wamr-vmcore-cmake-building-configurations

  • Add a new platform and implement the vmcore APIs

See https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/port_wamr.md

from wasm-micro-runtime.

miraclejzd avatar miraclejzd commented on May 28, 2024

Hi, WAMR is supposed to be able to run in some resource limited environments, may be you can build WAMR with some features enabled or disabled:

  • Use global heap: initialize a global byte buffer as a heap allocator and allocate memory from it, so as not to call system malloc/free - cmake -DWAMR_BUILD_GLOBAL_HEAP_POOL=1.
  • Disable libcwasi: cmake -DWAMR_BUILD_LIBC_WASI=0, and even disable libc-builtin if needed: cmake -DWAMR_BUILD_LIBC_BUILTIN=0
  • Disable some other features: cmake -DWAMR_DISABLE_WAKEUP_BLOCKING_OP=1 -DWAMR_DISABLE_HW_BOUND_CHECK=1 -DWAMR_DISABLE_WRITE_GS_BASE=1 -DWAMR_BUILD_QUICK_AOT_ENTRY=0

For the above options, please refer to: https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/build_wamr.md#wamr-vmcore-cmake-building-configurations

  • Add a new platform and implement the vmcore APIs

See https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/port_wamr.md

Thanks a lot!
Let me have a try :)

from wasm-micro-runtime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.