Emscripten 3.0, chishandiso chekuvaka cheWebAssembly uchishandisa LLVM

Munguva pfupi yapfuura kuburitswa kweiyo vhezheni itsva yeEmscripten 3.0 compiler yakaziviswa, iyo inoratidzirwa nekubvumira kodhi kuumbwa muC / C ++ nemimwe mitauro iyo LLVM-based frontends inowanikwa, mune yakaderera-level universal middleware WebAssembly.

Basa guru rekubatanidza uku nderekuzobatanidzwa kwayo neJavaScript Projects, inomhanya muwebhu browser, shandisa muNode. Js kana gadzira cross-platform standalone application inomhanya newam runtime.

About Emscripten

Chinangwa chikuru kuvandudzwa kweEmscripten project kugadzira chishandiso chinokutendera kuti umhanye kodhi paWebhu, pasinei nemutauro wepurogiramu iyo yakanyorwa nayo.

Yakaunganidzwa maapplication anogona kushandisa yakajairwa C uye C ++ raibhurari mafoni (libc, libcxx), C ++ extensions, pthreads-based multithreading, POSIX API, uye akawanda multimedia raibhurari. MaAPI ekubatanidza newebhu API uye JavaScript kodhi inopihwa zvakasiyana.

Nyorera inotsigira kutenderera SDL2 raibhurari kubuda kuburikidza neCanvas, uye inopawo OpenGL uye EGL rutsigiro kuburikidza neWebGL, ichikubvumidza kuti uchinje magiraidhi maapplication nemitambo kuWebAssembly.

Inenge chero inotakurika C kana C ++ kodhi base inogona kuunganidzwa muWebAssembly uchishandisa EmscriptenKubva pamitambo yemhando yepamusoro inoda kupa magiraidhi, kutamba manzwi, uye kurodha uye kugadzirisa mafaera, kune masisitimu ekushandisa seQt. Emscripten yakatoshandiswa kushandura runyorwa rwakareba kwazvo rwenyika-chaiyo kodhi mabhesi kuWebAssembly, kusanganisira yekutengesa mabhesi ekodhi akadai seUnreal Engine 4 uye Unity Engine.

Pamusoro pekunyora iyo C / C ++ kodhi, mapurojekiti anogadzirwa zvakasiyana kuti ave nechokwadi chekuti vaturikiri nemichina chaiyo yeLua, C #, Python, Ruby, uye Perl inotanga mumabhurawuza. Zvinogoneka zvakare kushandisa non-Clang interfaces kuLLVM inowanikwa kumitauro yakaita seSwift, Rust, D, uye Fortran.

Inofanira kuonekwa kuti pane misiyano pakati pekuzvarwa nguva yekumhanya uye Emscripten, zvinoreva kuti, kazhinji, eIzvo zvinodikanwa kuita shanduko kune yekuzvarwa kodhi. Izvo zvakati, akawanda maapplication anongoda kushandura nzira yavanotsanangura yavo huru loop uye zvakare kugadzirisa yavo mabatiro efaira kuti aenderane nebrowser / JavaScript zvinogumira.

Kune zvakare zvipimo zvinogona kuita kuti imwe kodhi ive nyore kutama - verenga iyo Portability Guidelines kuti uone kwaungade kushandisa zvakanyanya kushanda nesimba.

Hunhu hutsva hutsva hweEmscripten 3.0

Muiyi vhezheni itsva inoratidzwa, musl C raibhurari yakashandiswa muemscripten yakagadziridzwa kuita vhezheni 1.2.2 (vhezheni 1.1.15 yakashandiswa mubazi reEmscripten 2.x).

Kubva paparseTools.js raibhurari chikamu chemabasa chakabviswa, icho chinonyanya kushandiswa mupurojekiti: bvisaPointing, pointingLevels, bvisaAllPointing, isVoidType, isStructPointerType, isArrayType, isStructType, isVectorType, isStructuralType getStructuralTypeParts, getStructuralType _IntToHex, IEEEUnHex, CompileTimeTypeType, CompileTimeTypeTime.

Nguva mushell.html uye shell_minimal.html matemplate, kubuda kwemameseji ekukanganisa izvo zvinoitika panguva yekushanda kweemscripten uye zvakapihwa nechikumbiro kuburikidza ne stderr inoshandurwa nekusarudzika kushandisa console.warn pane console.error.

Izvo zvakare zvakasimbiswa izvo yakawedzera kugona kutsanangura yakatarwa mavara encoding anoshandiswa mumazita emafaira. Encoding inogona kutsanangurwa sechivakashure kana uchipfuura zita refaira, semuenzaniso "a.rsp.utf-8" kana "a.rsp.cp1251").

Chekupedzisira, kana iwe uchida kuziva zvakawanda nezvayo nezve Emscripten, unogona kubvunza ruzivo rweprojekiti mune yayo webhusaiti yepamutemo.

Uye nenzira imwecheteyo, iwe unogona kubvunza zvinyorwa pawebhu nezve mashandisiro eEmscripten, saiti yereferensi yatinogona kukurudzira ndeye Mozilla dhizaini webhusaiti: https://developer.mozilla.org.

Zvakare, zvakakosha kutaura kuti kodhi yeprojekiti yakagoverwa pasi peMIT rezinesi. Iyo compiler inoshandisa budiriro kubva kuLLVM chirongwa uye Binaryen raibhurari inoshandiswa kugadzira WebAssembly uye optimization. Unogona kutarisa kodhi yako tsime paGitHub.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Iva wekutanga kutaura

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa. Raida minda anozivikanwa ne *

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako