<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Emscripten</id>
	<title>Emscripten - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Emscripten"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Emscripten&amp;action=history"/>
	<updated>2026-06-25T14:39:51Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Emscripten&amp;diff=4301630&amp;oldid=prev</id>
		<title>imported&gt;Willy1018-bot：​BOTR：批量替換所有lang-xx模板為langx模板</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Emscripten&amp;diff=4301630&amp;oldid=prev"/>
		<updated>2025-06-14T12:52:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;https://en.wikipedia.org/wiki/%E6%9C%BA%E5%99%A8%E4%BA%BA/%E4%BD%9C%E4%B8%9A%E8%AF%B7%E6%B1%82#.E8.AB.8B.E6.B1.82.E6.89.B9.E9.87.8F.E6.9B.BF.E6.8F.9B.E6.89.80.E6.9C.89lang-xx.E6.A8.A1.E6.9D.BF.E7.82.BAlangx.E6.A8.A1.E6.9D.BF&quot; class=&quot;extiw&quot; title=&quot;wikipedia:机器人/作业请求&quot;&gt;BOTR&lt;/a&gt;：批量替換所有lang-xx模板為langx模板&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{NoteTA&lt;br /&gt;
| G1 = IT&lt;br /&gt;
}}&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| title = Emscripten&lt;br /&gt;
| logo = Emscripten logo.svg&lt;br /&gt;
| logo caption = &lt;br /&gt;
| screenshot = &amp;lt;!-- [[File: ]] --&amp;gt;&lt;br /&gt;
| caption = &lt;br /&gt;
| collapsible = &lt;br /&gt;
| author = Alon Zakai&lt;br /&gt;
| released = &amp;lt;!-- {{Start date|YYYY|MM|DD|df=yes}} --&amp;gt;&lt;br /&gt;
| programming language = [[C语言|C]]、[[C++]]、[[JavaScript]]&amp;lt;ref&amp;gt;{{cite web |url=https://github.com/emscripten-core/emscripten/releases |title=emscripten-core/emscripten: Emscripten: An LLVM-to-JavaScript Compiler |website=[[GitHub]] |quote=C: 40.0%; C++: 34.4%; JavaScript: 17.4%. |access-date=2023-09-03 |archive-date=2023-09-03 |archive-url=https://web.archive.org/web/20230903150422/https://github.com/emscripten-core/emscripten/releases |dead-url=no }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| operating system = &lt;br /&gt;
| platform = &lt;br /&gt;
| size = &lt;br /&gt;
| genre = [[編譯器]]&lt;br /&gt;
| license = [[MIT許可證|MIT]]、{{link-en|University of Illinois/NCSA Open Source License|University of Illinois/NCSA Open Source License|UIUC}}&lt;br /&gt;
| discontinued = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Emscripten&amp;#039;&amp;#039;&amp;#039;是基於[[LLVM]] / [[Clang]]的[[編譯器]]，用來将[[C语言|C]]和[[C++]][[源代码]]编译为[[WebAssembly]] &amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/kripken/emscripten/wiki/WebAssembly |title=WebAssembly · emscripten-core/emscripten Wiki · GitHub |access-date=2023-09-03 |archive-date=2019-01-16 |archive-url=https://web.archive.org/web/20190116171823/https://github.com/kripken/emscripten/wiki/WebAssembly |dead-url=no }}&amp;lt;/ref&amp;gt;。在WebAssembly於2017年出現以前，[[JavaScript]]的子集[[asm.js]]曾是編譯目標 &amp;lt;ref&amp;gt;{{Cite web|last=Walton|first=Zach|date=2012-04-04|title=Easily Port C++ To HTML5/JavaScript With Emscripten|url=http://www.webpronews.com/easily-port-c-to-html5javascript-with-emscripten-2012-04|url-status=dead|archive-url=https://web.archive.org/web/20130730202900/http://www.webpronews.com/easily-port-c-to-html5javascript-with-emscripten-2012-04|archive-date=2013-07-30|access-date=2012-04-25|website=WebProNews|publisher=iEntry Network}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Emscripten 允许預先编译用 C 或 C++ 编写的应用程序和库以在網頁瀏覽器中運行，絕大多數的情況下運行速度與[[直譯器|直譯]]（或[[即時編譯]]）的 JavaScript 相同或更快。Emscripten 甚至可以模拟整个[[可移植操作系统接口|POSIX]]操作系统，使程序员能够使用[[C標準函式庫]](libc) 中的函数。 &amp;lt;ref name=&amp;quot;ClarkL_(2019)&amp;quot;&amp;gt;{{Cite web|last=Clark|first=Lin|title=Standardizing WASI: A system interface to run WebAssembly outside the web – Mozilla Hacks - the Web developer blog|url=https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webassembly-system-interface/|access-date=31 October 2022|website=Mozilla Hacks – the Web developer blog|publisher=Mozilla|archive-date=2022-10-30|archive-url=https://web.archive.org/web/20221030175011/https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webassembly-system-interface/|dead-url=no}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
随着WebAssembly的接口（{{langx|en|WebAssembly System Interface}}，WASI）&amp;lt;ref&amp;gt;{{Cite web|last=The Wasmtime Project|title=WASI: The WebAssembly System Interface|url=https://wasi.dev/|access-date=2021-02-10|website=WASI.dev|publisher=The Wasmtime Project|archive-date=2022-07-05|archive-url=https://web.archive.org/web/20220705161801/https://wasi.dev/|dead-url=no}}&amp;lt;/ref&amp;gt;和[[运行时系统]]（例如[[Node.js]]、Wasmtime&amp;lt;ref&amp;gt;{{Cite web|last=The Wasmtime Project|title=Wasmtime: A small and efficient runtime for WebAssembly &amp;amp; WASI|url=https://wasmtime.dev/|access-date=2021-02-10|website=Wasmtime.dev|publisher=The Wasmtime Project|archive-date=2020-12-04|archive-url=https://web.archive.org/web/20201204101750/http://wasmtime.dev/|dead-url=no}}&amp;lt;/ref&amp;gt;和Wasmer&amp;lt;ref&amp;gt;{{Cite web|last=Wasmer|title=Wasmer: The Universal WebAssembly Runtime|url=https://wasmer.io/|access-date=2021-02-10|website=Wasmer.io|publisher=Wasmer|archive-date=2021-03-02|archive-url=https://web.archive.org/web/20210302014031/https://wasmer.io/|dead-url=no}}&amp;lt;/ref&amp;gt;）上的WebAssembly的開發進展，Emscripten也可编译成在網頁以外的地方使用的WebAssembly 。&lt;br /&gt;
&lt;br /&gt;
== 用途 ==&lt;br /&gt;
Emscripten 已讓许多 C/C++ 代码库順利[[移植 (軟體)|移植]]到WebAssembly，包括[[虚幻引擎|Unreal Engine 3]]、[[SQLite]] 、 &amp;lt;ref&amp;gt;{{Cite web|title=sqlite3 WebAssembly &amp;amp; JavaScript Documentation Index|url=https://sqlite.org/wasm|access-date=2023-05-08|website=SQLite|archive-date=2024-05-02|archive-url=https://web.archive.org/web/20240502210710/https://sqlite.org/wasm/doc/trunk/index.md|dead-url=no}}&amp;lt;/ref&amp;gt;[[MeshLab]] 、 &amp;lt;ref&amp;gt;http://www.meshlabjs.net {{Wayback|url=http://www.meshlabjs.net/ |date=20220117024727 }} - Homepage of the experimental, client based, javascript, version of [[MeshLab]] that runs inside a browser&amp;lt;/ref&amp;gt;[[Bullet]]physical 。 &amp;lt;ref&amp;gt;{{Cite web|title=Porting Examples and Demos|url=https://github.com/emscripten-core/emscripten/wiki/Porting-Examples-and-Demos|access-date=2016-03-01|website=Emscripten GitHub wiki|archive-date=2023-09-03|archive-url=https://web.archive.org/web/20230903150421/https://github.com/emscripten-core/emscripten/wiki/Porting-Examples-and-Demos|dead-url=no}}&amp;lt;/ref&amp;gt;[[AutoCAD]] &amp;lt;ref&amp;gt;{{Cite web|title=The Future of AutoCAD|url=http://through-the-interface.typepad.com/through_the_interface/2018/03/the-future-of-autocad.html|access-date=2018-05-09|website=Through the Interface|archive-date=2023-09-03|archive-url=https://web.archive.org/web/20230903150422/https://through-the-interface.typepad.com/through_the_interface/2018/03/the-future-of-autocad.html|dead-url=no}}&amp;lt;/ref&amp;gt;、[[Qt|Qt 应用程序框架]]的子集等等。&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;{{Cite web|title=Qt for WebAssembly|url=https://doc.qt.io/qt-5/wasm.html|access-date=2023-09-03|archive-date=2023-10-12|archive-url=https://web.archive.org/web/20231012002222/https://doc.qt.io/qt-5/wasm.html|dead-url=no}}&amp;lt;/ref&amp;gt;通过 Emscripten 順利移植到 WebAssembly 的其他软件範例包括：&lt;br /&gt;
&lt;br /&gt;
=== 游戏引擎 ===&lt;br /&gt;
[[Unity (游戏引擎)|Unity]]、[[Godot]]和[[虚幻引擎|Unreal]]游戏引擎利用Emscripten提供了HTML5的导出选项。 &amp;lt;ref&amp;gt;{{Cite web|date=18 March 2014|title=Unity game engine heading to the browser without plug-ins|url=https://arstechnica.com/gadgets/2014/03/unity-game-engine-heading-to-the-browser-without-plug-ins/|access-date=2016-03-01|website=Ars Technica|archive-date=2019-03-22|archive-url=https://web.archive.org/web/20190322173330/https://arstechnica.com/gadgets/2014/03/unity-game-engine-heading-to-the-browser-without-plug-ins/|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web|title=The future of scripting in Unity – Unity Blog|url=http://blogs.unity3d.com/2014/05/20/the-future-of-scripting-in-unity/|access-date=2016-03-01|website=Unity Technologies Blog|archive-date=2016-03-04|archive-url=https://web.archive.org/web/20160304094905/http://blogs.unity3d.com/2014/05/20/the-future-of-scripting-in-unity/|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web|title=Tappy Chicken|url=https://www.unrealengine.com/html5/|access-date=2016-03-01|website=www.unrealengine.com|archive-date=2017-08-21|archive-url=https://web.archive.org/web/20170821002206/https://www.unrealengine.com/html5|dead-url=no}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 框架和工具包 ===&lt;br /&gt;
{{Link-en|openFrameworks}} 通过 Emscripten 将本机 C++ 应用程序导出成 HTML5。&amp;lt;ref&amp;gt;{{Cite web|title=openFrameworks setup for Emscripten|url=http://openframeworks.cc/setup/emscripten/|access-date=2016-03-04|website=openFrameworks|archive-date=2023-04-19|archive-url=https://web.archive.org/web/20230419014146/https://openframeworks.cc/setup/emscripten/|dead-url=no}}&amp;lt;/ref&amp;gt;emscripten-qt允许将使用[[Qt|Qt 应用程序框架]]编写的应用程序编译为WebAssembly。&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 软件归档 ===&lt;br /&gt;
2014年12月，[[互联网档案馆]]推出了用Emscripten编译的[[DOSBox]]模拟器，提供数千个基於瀏覽器的存档的[[MS-DOS]]和PC程序。&amp;lt;ref&amp;gt;{{Cite news|url=https://www.washingtonpost.com/blogs/the-switch/wp/2015/01/05/you-can-now-play-nearly-2400-ms-dos-video-games-in-your-browser/|title=You can now play nearly 2,400 MS-DOS video games in your browser|first=Abby|author=Ohlheiser|date=2015-01-05|accessdate=2015-01-08|work=[[The Washington Post]]|archive-date=2015-01-07|archive-url=https://web.archive.org/web/20150107210746/https://www.washingtonpost.com/blogs/the-switch/wp/2015/01/05/you-can-now-play-nearly-2400-ms-dos-video-games-in-your-browser/|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;[http://ascii.textfiles.com/archives/4471 Each New Boot a Miracle] {{Wayback|url=http://ascii.textfiles.com/archives/4471 |date=20150109113609 }} by Jason Scott (December 23, 2014)&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web|title=Internet Archive Search: &amp;quot;collection:softwarelibrary_msdos&amp;quot;|url=https://archive.org/search.php?query=collection%3Asoftwarelibrary_msdos&amp;amp;page=1|access-date=2016-03-01|website=archive.org}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 參見 ==&lt;br /&gt;
{{Portal|自由軟體}}&lt;br /&gt;
&lt;br /&gt;
* [[asm.js]]&lt;br /&gt;
* [[Native Client|Google Native Client]] (PNaCl)&lt;br /&gt;
* [[Haxe]]&lt;br /&gt;
* [[WebAssembly]]&lt;br /&gt;
&lt;br /&gt;
== 參考文獻 ==&lt;br /&gt;
{{Reflist|30em}}&lt;br /&gt;
&lt;br /&gt;
== 外部链接 ==&lt;br /&gt;
&lt;br /&gt;
* {{Official website}}&lt;br /&gt;
* {{GitHub|emscripten-core/emscripten}}&lt;br /&gt;
* [https://emscripten.org/docs/ Emscripten文檔] {{Wayback|url=https://emscripten.org/docs/ |date=20230903150421 }}&lt;br /&gt;
* [https://github.com/emscripten-core/emscripten/wiki/Porting-Examples-and-Demos 接口使用範例與演示] {{Wayback|url=https://github.com/emscripten-core/emscripten/wiki/Porting-Examples-and-Demos |date=20230903150421 }}&lt;br /&gt;
* [https://github.com/appcypher/awesome-wasm-runtimes 部分WebAssembly运行时的列表] {{Wayback|url=https://github.com/appcypher/awesome-wasm-runtimes |date=20231016122016 }}&lt;br /&gt;
{{JavaScript}}&lt;br /&gt;
&lt;br /&gt;
[[Category:使用MIT许可证的软件]]&lt;br /&gt;
[[Category:JavaScript函式庫]]&lt;br /&gt;
[[Category:编译器软件]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Willy1018-bot</name></author>
	</entry>
</feed>