# Basics of Memory Access in WebAssembly

DevFeed: [Basics of Memory Access in WebAssembly](<https://devfeed.tech/articles/basics-of-memory-access-in-webassembly-27442.md>)

Original publisher: [Read original article](<https://ariya.io/2019/05/basics-of-memory-access-in-webassembly/>)

Published: 2019-05-13T06:20:17Z

Content type: tutorial

Language: en

Sources: [Ariya Hidayat](<https://devfeed.tech/sources/ariya-hidayat.md>)

Topics: [WebAssembly](<https://devfeed.tech/topics/web-assembly.md>), [C](<https://devfeed.tech/topics/c.md>), [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>), [Image processing](<https://devfeed.tech/topics/image-processing.md>), [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>)

Tags: [c](<https://devfeed.tech/tags/c.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [image-processing](<https://devfeed.tech/tags/image-processing.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [pixel](<https://devfeed.tech/tags/pixel.md>), [rgb](<https://devfeed.tech/tags/rgb.md>), [visual-studio-code](<https://devfeed.tech/tags/visual-studio-code.md>), [webassembly](<https://devfeed.tech/tags/webassembly.md>)

## AI overview

This tutorial explains WebAssembly's memory model and demonstrates compiling a simple C/C++ function with Emscripten. It shows how to run a minimal WebAssembly module from Node.js with reduced runtime support, inspect its textual format, and prepare for transferring array data such as pixel RGB values for image processing.

## Source excerpt

WebAssembly is getting more popular than ever. The use of WebAssembly outside the confinement of a web browser also starts to gain traction, as evidenced from projects such as WebAssembly Interface. Understanding the memory model of WebAssembly will be important in order to fully comprehend its power as well as its constraints.