C++ 練習平台/C++ 程式模擬器 使用的第三方元件 ================================================ 本資料夾的自製程式(index.html、simulator.html 的 C++ 部分,以及 cpp-engine.js、 cpp-compiler-worker.js、cpp-runner-worker.js、floating-tools.js) © 2026 張世杰老師 版權所有。第三方元件依各自授權使用,授權全文如下列檔案。 1. wasm-clang(clang 8 / wasm-ld 編譯成 WebAssembly 的版本) 來源:https://github.com/binji/wasm-clang 授權:Apache License 2.0 —— 全文見 LICENSE-wasm-clang.txt 檔案:clang.wasm.gz、lld.wasm.gz、memfs.wasm.gz、sysroot.tar.gz(原檔的 gzip 壓縮版,內容未修改) cpp-rt.js 改寫自該專案的 shared.js(Copyright 2020 WebAssembly Community Group participants,Apache-2.0),修改內容見 cpp-rt.js 檔頭說明。 2. LLVM 專案(clang、lld、libc++、libc++abi、compiler-rt) 來源:https://llvm.org/ 授權:Apache License 2.0 with LLVM Exceptions,以及舊版 University of Illinois/NCSA Open Source License(Copyright (c) 2007-2019 University of Illinois at Urbana-Champaign)—— 全文見 LICENSE-llvm.txt 3. wasi-libc(sysroot.tar.gz 內的 C 標準函式庫) 來源:https://github.com/WebAssembly/wasi-libc 授權:Apache-2.0 with LLVM Exceptions / Apache-2.0 / MIT(三選一); 內含 cloudlibc(BSD-2-Clause,Copyright (c) 2015-2017 Nuxi)、 musl(MIT,Copyright © 2005-2020 Rich Felker 等)、dlmalloc(CC0) —— 全文見 LICENSE-wasi-libc.txt 4. CTRE compile-time regular expressions(sysroot.tar.gz 內 include/ctre.hpp) 作者:Hana Dusíková 授權:Apache-2.0 with LLVM Exceptions(授權全文在該檔檔頭) 5. CodeMirror 5(codemirror.min.js / .css、clike.js、closebrackets、matchbrackets、dracula 主題) 來源:https://codemirror.net/5/ 授權:MIT(Copyright (C) 2017 by Marijn Haverbeke and others)—— 全文見 LICENSE-codemirror.txt 6. Font Awesome Free 6.4.2(font-awesome/) 來源:https://fontawesome.com/ Copyright 2023 Fonticons, Inc. 授權:圖示 CC BY 4.0、字型 SIL OFL 1.1、程式碼 MIT —— https://fontawesome.com/license/free