Comments (1)
Hi, sorry for the delay. For example the following instructions stores an i32 “123” at byte range [4..7]:
i32.const 4 // byte-sized address i32.const 123 // value to store i32.store 2 0 // 2 = 32-bit/4-byte alignment, 0 = offset
The first immediate of the instruction "i32.store" is the alignment hint and the second immediate indicates the offset based on the base address you provide by operands (i32.const 4). So, the final address should be the base_addr + offset_addr.
from book-diso-webassembly.
Related Issues (15)
- [Emscripten] Use "-s MODULARIZE" to initialize module in an async style.
- 第七章7.3.4 touch事件Demo和7.4.2事件Demo无法运行
- 请问对于编库产生的wasm文件如何调用 HOT 1
- test(7).js:2404 LinkError: WebAssembly.instantiate(): table import 25 is smaller than initial 30, got 14 HOT 1
- test(7).js:1267 Uncaught RangeError: WebAssembly.Memory(): could not allocate memory HOT 1
- 错误:编译参数错误 HOT 1
- p25 node -trace_parse app.js HOT 1
- p135,typo,lable HOT 1
- 一本不错的书 HOT 1
- p23 typo: lzay parsing HOT 1
- 关于第15页最后两行产生式的疑问 HOT 1
- 关于Webassembly的性能 HOT 1
- p145 'br_if指令' 表述歧义 HOT 1
- run WebAssembly Standalone type report TypeError HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from book-diso-webassembly.