编译辅助工具/命令行/可打印文档。豫
yuyan · 59 行 · 3723 字节 · UTF-8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
寻观「标准库」之书。
寻观「编译器核心」之「编译辅助工具」之「命令行」之「版本管理」之书。
「AGPL版权声明」者
『豫言编程语言 (一款中文函数式编程语言)
Copyright 版权所有 (C) 2021-2023 The Author(s) of Yuyan 豫言编程语言的作者(们)
本软件的开源许可仅限个人用户非商业使用,非个人用户或商业使用请向我们购买商业使用许可。
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.』也。
「帮助文本」者
『豫言编程语言 (』附「当前豫言版本」附
『) 运行:yy [options] [files] [ -- [args]]
其中 [options] 可以是
stage 输入阶段 输出阶段 输入文件 输出前缀 源身份 [依赖三项…] [-- 选项…]
独立执行阶段,默认导出 JSON 与豫言
--read-intermediate-text 从豫言文本读取磁盘阶段缓存
--intermediate-json-only 仅导出 JSON,供性能对照
-h, --help 显示本帮助信息
-v 显示粗略的调试信息
-vv 显示详细的调试信息
-vvv 显示更详细的调试信息
--debug-print-add [debug_flag] 打印指定的调试信息
--debug-check-add [debug_flag] 执行指定的调试检查
--type-check-only 仅执行类型检查,不生成可执行文件
--parallel 以豫言调度工作进程,并行编译
--package-context PATH 使用豫构生成的严格包上下文
-j N, --num-cpu N 并发工作进程上限(正整数)
-c, --compile-only 兼容选项;编译器只生成模块,不运行
-o PATH 指定 Wasm 模块的输出路径
--no-link 只生成各文件的模块产物,不生成最终模块
编译输入须由 yy豫构 提供包上下文,不再提供特殊标准库搜索路径。
--whole-program-opt 使用全局编译优化
--do-not-optimize 不执行优化
-O0, -O[1,2,3,5,8,13,21] 执行0,1,2,3,5,8,13或21次优化
--optimize 执行优化(默认)
--frontend-tasks=[split,combined] 前端并行任务粒度,默认 split
--mode=[regular,worker] 指定运行模式(用于多任务处理)
--worker-task=TASK 指定单一工作模式(worker)当前任务
--self-integrity-check 检查自身完整性
--override-add-file-dependency PATH 用于在单一工作模式下覆写文件依赖
--no-debug-print 不打印调试信息
--no-dependency-check 不检查依赖修改时间
--print-opt-info 打印优化的调试信息
--about 显示版权信息
--version 显示软件当前版本』
也。