movl $0, %edi我将代码组装为:$ as -o hello.o hello.s$ ld hello.o /usr/lib/x86_64-linux-musl/libc.a
这就生成了一个a.out文件,在执行时输出"Hello,world“。/a.out: No such file or direct
我编写了.c文件,并使用gcc filename.c编译它-它创建了一个名为a.out的可执行文件。但是,当我键入a.out或/a.out时,我得到以下消息:-bash: a.out: command not found或-bash: /a.out: No such file or directory在使用同样的方法之前,我已经成功地在Linux系统上编译并运行了C程序。我在Mac上做错了什么?