hla - HLA 编译 - 可以指定构建目录吗?
问题描述
默认情况下,编译hla filename.hla
会在当前目录中构建一个可执行文件。可以指定不同的目录吗?
解决方案
环境
- HLA(高级汇编器 - HLABE 后端,LD 链接器)版本 2.16 build 4463(原型)
- Ubuntu 20.10
解决方案
- 这可以通过使用
-x:name Executable output filename (does not append ".exe").
hla 帮助中的“Assembler and Linker Control”部分下的 Found 选项来指定。 - 要更改输出目录,请考虑
-x:name
改为-x:/path/to/name
。
例子
user@host:~/example$ ls
src bin
user@host:~/example$ cd src
user@host:~/example/src$ ls
filename.hla
user@host:~/example/src$ hla -x:../bin/filename.x filename.hla
user@host:~/example/src$ ls
src.hla src.o
user@host:~/example/src$ cd ../bin
user@host:~/example/bin$ ls
filename.x
user@host:~/example/bin$
推荐阅读
- c# - 带有组合框的 DataGridView 不填充数据
- php - 无法让 WordPress 将错误消息写入调试日志
- php - 为什么我的 div 在 WP 模板中嵌套?
- amazon-web-services - 由于缺少参数,使用 CDK 部署 Lambda 函数失败
- python - Python中的处理时间表
- tkinter - NameError:名称“名称”未在 tkinter 中定义?
- php - Laravel 表单提交 - 使用调试栏调试输出
- google-signin - 使用自定义谷歌登录按钮时如何退出
- php - 防止数据库中的重复用户名
- r - 如何对 train() 函数的结果进行 wilcox 测试