0

默认情况下,编译hla filename.hla会在当前目录中构建一个可执行文件。可以指定不同的目录吗?

4

1 回答 1

0

环境

  • 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$
于 2020-12-31T17:01:30.317 回答