GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

[user@openwork fortran]$ cat test.html <!DOCTYPE html> <html> <body> <script type="module"> async function init() { const { instance } = await WebAssembly.instantiateStreaming( fetch("./test.wasm") ); var result = instance.exports.pi_leibniz(100000000); document.write(result) } init(); </script> </body> </html> [user@openwork fortran]$ make flang-new -O2 --target=i386 -emit-llvm -S test.f90 llc --march=wasm32 -filetype=obj test.ll wasm-ld -L/usr/local/lib/clang/17/lib/wasi/ -l:libclang_rt.builtins-wasm32.a --no-entry --export-all -o test.wasm test.o

Download link

https://misskey-taube.s3.wasabisys.com/files/997a8e3c-3fa8-4631-87bb-8de4f427ecf9.png

Notices where this attachment appears

  1. Embed this notice
    niconiconi (niconiconi@mk.absturztau.be)'s status on Friday, 24-Feb-2023 16:36:00 JST niconiconi niconiconi

    FORTRAN to WebAssembly cross-compile is a success! I can run FORTRAN code in Firefox now!!!

    In conversation Friday, 24-Feb-2023 16:36:00 JST from mk.absturztau.be permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.