qemu-aarch64 - sudo apt install qemu-user aarch64 汇编 创建文件head.S,其内容如下 1.global _start23_start:4ldr x0, loop5adr x1, loop6ldr x2, =loop7adrl x3, loop89loop:10nop11nop 然后编译并使用 qemu-aarch64 运行 1aarch64-linux-gnu-gcc-nostdlib -nodefaultlibs -ohead.elfhead.S...
创建文件hello64.c,其内容如下 #include<stdio.h>intmain(intargc,char*argv){printf("Hello, I'm executing ARM64 instructions\n");return0; } 然后编译并使用 qemu 运行 $aarch64-linux-gnu-gcc -static -o hello64 hello64.c$qemu-aarch64 ./hello64...
- run: sudo apt-get install -o Acquire::Retries=5 -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu qemu-user-static - run: cmake -DCMAKE_TOOLCHAIN_FILE=CMakeARM64Cross.txt - run: make -j4 VERBOSE=1 - run: make -j4 test ARGS=-V armv7: runs-on: ubuntu-latest steps: @@ -...
2. 下载qemu-user-static# 这个程序可以在PC机上解析arm或aarch64的ELF文件并执行之(用户侧的“虚拟机”) 下载链接:# https://github.com/multiarch/qemu-user-static/releases 下载诸如: qemu-aarch64-static.tar.gz/qemu-arm-static.tar.gz的文件,下载下来后,解压。建议解压到docker包的目录下 3. 通过dock...