./zcc -march=rv32i ./hello.c
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/crt0.o is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-argz_add.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-argz_add_sep.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-argz_append.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-argz_count.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-argz_create.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-argz_create_sep.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-argz_delete.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-argz_extract.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-argz_insert.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-argz_next.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-argz_replace.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-argz_stringify.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-buf_findstr.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-envz_entry.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-envz_get.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-envz_add.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-envz_remove.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-envz_merge.o) is incompatible with elf32-littleriscv
ld.lld: error: /home/ansel/sofeware/zcc-lite-u20/.bin/…/riscv64-unknown-elf/lib/size/libc.a(libc_a-envz_strip.o) is incompatible with elf32-littleriscv
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
zcc: error: ld command failed with exit code 1 (use -v to see invocation)
zcc编译器没有对rv32i的march做支持,你可以使用rv32ic或者其他的march,关于zcc编译器支持的march,你可以到兆松科技,产品使用手册中的“终端运行工具链”这一章节查看详细信息,这里面介绍了zcc支持的所有march,和zcc的安装使用方法,链接如下https://docs.terapines.com/zstudio/zh-cn/latest/get_started.html