<div dir="ltr"><div dir="ltr">Hi Osman,<div><br></div><div>The emscripten-discuss list would probably be a better place to ask any question involving emscripten. <a href="https://groups.google.com/forum/?nomobile=true#!forum/emscripten-discuss">https://groups.google.com/forum/?nomobile=true#!forum/emscripten-discuss</a>.</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 20, 2018 at 7:46 AM Osman Zakir via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span>I read that WebAssembly is intended as a first-class target for LLVM.  So how do I make use of this to compile to WebAssembly with LLVM?  I really want to know.  I have this code that I want to compile to WebAssembly and use on the backend as a Node module
 (instead of using it as an ES6 (or above) module): <a id="m_-1434825218731002284LPlnk317638" href="https://github.com/DragonOsman/currency_converter" target="_blank">
https://github.com/DragonOsman/currency_converter</a> (look in the .cpp file for the web server code).  </span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span><br>
</span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
And I also want to know how to use EMSCRIPTEN_BINDINGS on my use of std::shared_ptr since I still don't fully understand how to do this.  I did read the Emscripten documentation, but I still need some help in understanding how to do it.  </div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Also, can I use both the iostream and emscripten.h headers in the same file?  Or is that a bad idea?  </div>
<div class="m_-1434825218731002284LPBorder561612" id="m_-1434825218731002284LPBorder_GTaHR0cHM6Ly9naXRodWIuY29tL0RyYWdvbk9zbWFuL2N1cnJlbmN5X2NvbnZlcnRlcg.." style="width:100%;margin-top:16px;margin-bottom:16px;min-width:424px;max-width:800px">
<table id="m_-1434825218731002284LPContainer561612" style="padding:12px 36px 12px 12px;border-radius:2px;border:1px solid rgb(200,200,200);width:100%">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td>
<div id="m_-1434825218731002284LPImageContainer561612" style="height:160px;overflow:hidden;margin-right:12px">
<a id="m_-1434825218731002284LPImageAnchor561612" href="https://github.com/DragonOsman/currency_converter" target="_blank"><img width="160" height="160" id="m_-1434825218731002284LPThumbnailImageId561612" style="display:block" alt="" src="https://avatars0.githubusercontent.com/u/18173932?s=400&v=4"></a></div>
</td>
<td style="width:100%">
<div id="m_-1434825218731002284LPTitle561612" style="font-family:"wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:21px;font-weight:300;margin-right:8px;margin-bottom:12px">
<a id="m_-1434825218731002284LPUrlAnchor561612" style="color:var(--themePrimary);text-decoration:none" href="https://github.com/DragonOsman/currency_converter" target="_blank">GitHub - DragonOsman/currency_converter: Application for Computer Science course</a></div>
<div id="m_-1434825218731002284LPDescription561612" style="color:rgb(102,102,102);overflow:hidden;font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;margin-right:8px;margin-bottom:12px;max-height:100px">
Google Maps + Currency Converter Web Application. Application for Computer Science course. This is a currency converter web application with the frontend and a backend.</div>
<div id="m_-1434825218731002284LPMetadata561612" style="color:rgb(166,166,166);font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;font-weight:400">
<a href="http://github.com" target="_blank">github.com</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
</div>

_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>