<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shogonir</author_name>
  <author_url>https://blog.hatena.ne.jp/shogonir/</author_url>
  <blog_title>shogonir blog</blog_title>
  <blog_url>https://blog.shogonir.jp/</blog_url>
  <categories>
    <anon>WebAssembly</anon>
    <anon>wasm</anon>
    <anon>emsdk</anon>
    <anon>emscripten</anon>
    <anon>JavaScript</anon>
    <anon>JS</anon>
    <anon>C</anon>
    <anon>C++</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>目次 本記事の目的 C/C++で呼び出したい関数を実装する emccのExportedFunctionsオプションを使ってビルド JSからwasmを読み込んで関数を呼び出す まとめ 1. 本記事の目的 本記事では、C/C++で実装した関数をJSから呼び出す方法を紹介します。 例として、int型の引数を2つとって和を返すadd(int, int)を実装します。 GitHubにソースを上げました。 wasm-sample/02-wasm-exported-functions at master · shogonir/wasm-sample · GitHub</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.shogonir.jp%2Fentry%2F2017%2F05%2F17%2F004943&quot; title=&quot;【WebAssembly】C/C++で実装した関数をJSから呼び出す - shogonir blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/shogonir/20170514/20170514025514.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-05-17 00:49:43</published>
  <title>【WebAssembly】C/C++で実装した関数をJSから呼び出す</title>
  <type>rich</type>
  <url>https://blog.shogonir.jp/entry/2017/05/17/004943</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
