D.9. Chapter 11

Chapter 11 has two exercises.

D.9.1. Exercise 1

When using the WebAssembly Binary Toolkit to create a WebAssembly module, which s-expression nodes have to appear before the table, memory, global, and func s-expressions?

Solution

If included, the import s-expression nodes must appear before the table, memory, global, and func s-expressions.

D.9.2. Exercise 2

Try adjusting the InitializeRowsAndColumns function in the text format code so that it now supports six levels rather than three:

  • Level 4 should have 3 rows and 4 columns.
  • Level 5 should have 4 rows and 4 columns.
  • Level 6 should have 4 rows and 5 columns.
Solution

In your WebAssembly\ folder, create an Appendix D\D.9.2\source\ folder, and then copy in the cards.wast ...

Get WebAssembly in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.