File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -378,16 +378,25 @@ $ source ~/emsdk/emsdk_env.sh
378
378
Change the Emscripten SDK environment path if necessary.
379
379
380
380
At this point, you can build and start a web server service to serve WebAssembly by running:
381
+ - user space emulation:
381
382
` ` ` shell
382
- $ make CC=emcc start-web
383
+ $ make CC=emcc start-web -j8
384
+ ` ` `
385
+ - system emulation:
386
+ ` ` ` shell
387
+ $ make CC=emcc start-web ENABLE_SYSTEM=1 INITRD_SIZE=32 -j8
383
388
` ` `
384
389
You would see the server' s IP:PORT in your terminal. Copy and paste it to the browsers and
385
390
you just access the index page of `rv32emu`.
386
391
387
- You would see a dropdown menu which you can use to select the ELF executable. Select one and
388
- click the Run button to run it.
392
+ You would see a dropdown menu which you can use to select the ELF executable for user space emulation, select one and
393
+ click the ' Run' button to run it. For system emulation, click the ' Run Linux' button to boot Linux.
394
+
395
+ Alternatively, you may want to view a hosted `rv32emu` since building takes some time.
396
+ - [user space emulation demo page](https://sysprog21.github.io/rv32emu-demo/)
397
+ - [system emulation demo page](https://sysprog21.github.io/rv32emu-demo/system)
389
398
390
- Alternatively, you may want to view a hosted `rv32emu` [demo page](https://sysprog21.github.io/rv32emu-demo/) since building takes some time .
399
+ Both pages can be easily switched using the navigation button .
391
400
392
401
## Contributing
393
402
See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.
You can’t perform that action at this time.
0 commit comments