Giter Site home page Giter Site logo

lib-wamr's Introduction

wamr for Unikraft

This is the port of wamr for Unikraft as external library. If given the --repl parameter this port will run REPL mode. Alternatively you can run a program from a file if passed as a initrd parameter. For example, if using KVM/QEMU:

  • REPL: add -append "--repl" to the command line
  • initrd: add -initrd <filename.wasm> to the command line

If you don't want or need your application to provide a main, you can check the "Provide main function" option in the wamr menu and this library will provide one for you.

Please refer to the README.md as well as the documentation in the doc/ subdirectory of the main unikraft repository.

lib-wamr's People

Contributors

felipehuici avatar nderjung avatar r0mbertus avatar razvand avatar skuenzer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lib-wamr's Issues

Buiding Error in `wasm_interp.h`

While building this I got the following error.

In function ‘wasm_interp_interp_frame_size’:
/libwamr/origin/wasm-micro-runtime-bc762fe9e2cf2d26a0cde42931c4b6ed79860047/core/iwasm/runtime/vmcore-wasm/wasm_interp.h:68:30 error: expected expression before ‘WASMInterpFrame’
   68 |   return align_uint(offsetof(WASMInterpFrame, lp) + all_cell_num * 5, 4);
      |                              ^~~~~~~~~~~~~~~

Furthermore, this error occurs after applying the changes from #2.

magic header not detected

Default interpreter assignment not working. When i start QEMU with "-initrd" the failure "magic header not detected" appears.

Command line: qemu-system-x86_64 -kernel build/app-wamr_qemu-x86_64 -serial mon:stdio -append 'console=ttyS0' -initrd hello.wasm
Unikraft version: Atlas 0.13.0~de40bcc1

How to fix this? Many thanks in advance

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.