Coder Social home page Coder Social logo

blog's Introduction

GitHub Stats Card Top Launguages Card trophy

blog's People

Contributors

shirakawayohane avatar

Watchers

 avatar  avatar

blog's Issues

原稿:WebAssemblyを手書き出来るようになる記事


title: WebAssemblyが読み書き出来るようになる記事 〜②制御構文編〜
tags: [Wasm, Rust]

前回に引き続き、WebAssemblyが読み書き出来るようになるまで頑張って行きたいと思います。現時点だと読者はゼロに近い気がしますが、このWasmコーナーをシリーズ化して継続することによって達成感的な何かを得られればと思っています。

今回勉強すること

今回は、大抵のプログラミング言語で使うことになる、while,for,loopなどの制御構文が、WebAssemblyではどのような表現になるのかを見ていきたいと思います。

他の機械語だと、whileやforなどは全て、ラベルやジャンプに落とし込んで表現したりしますよね。WebAssemblyでも大体同じではあるのですが、block, loop や、br, br_if, select など似たような命令があったりするので、このあたりをスッキリさせたいですね。

既存言語のコンパイラ出力を見る

例の如く、コンパイラの出力を見るのが手っ取り早そうです。
Rustを使う場合は前回の記事で設定したように、wabtなどのツールで見ることが出来ます。

今回は、環境構築面倒くさい方向けに、Compiler Explorerを使ってきたいと思います。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.