The included test 'hello.c' works with gcc, but fails with tcc: x86_64: nolibc.h:1479: error: asm constraint 7 ('r') could not be satisfied
i386-tcc: compiles, but the created program produces no output
Other arch fail at the last line of the startup-code (empty asm string) arm64-tcc (at line 996), arm-tcc (at 799) and riscv64-tcc (at 1399) Interesting: x86_64 (line 434) and I386 (line 614) have the same empty asm string at the end of the startup-code, but do not complain.
nolibc.h is also in the linux kernel source ( tools/include/nolibc/nolibc.h ) (License: LGPL-2.1 OR MIT)
(looking forward to be able to build a x86_64-linux-nolibc-tcc)
-- Regards...
Detlef
[Prev in Thread]
Current Thread
[Next in Thread]
[Tinycc-devel] bug: nolibc.h does not work with tcc,
Detlef Riekenberg<=