I use the compiler under the path /language/compiler to compile the .mvir files. With -o flag, I got bytecodes, like a executable after compilation.
However, I cannot run it anyway. Do we need to run some vm runtime first?
I did not find out anything help under the github repository of libra.
The hard way: modify the validator code to allow custom scripts/modules, recompile it, run it, and then use a modified client to talk to it. This is unfortunately non-trivial. We are working hard on tools that will make local testing easier. Please stay tuned.
Thanks for the reply. Yeah, I have seen the great work done by @Omri and reproduced it.
BTW, the hard way looks really hard, haha. Looking forward to future commit about this. This is extremely important for potential dapp developers. Thanks for bring such a wonderful blockchain to the community.