> For which architectures can tcc compile the kernel? How is assembler
> source handled?

ARCH=i386, A kernel is 2.4.26 with a patch from tccboot.iso
https://googledrive.com/host/0B35PjbLHNzyqbklHTUd6ampvd0E (this is
tcc-kernel-2.4.26.tar.bz2 in my GoogleDrive) contain all to build this
kernel. A minimal kernel config is used. But this kernel boots using a
ramdisk and there is a bash prompt. Mostly this is tccboot.iso which
use a kernel compiled by the current tcc.

PS: a "build" executable is for i386. A gcc-2.9.95 can compile this
kernel. A new gcc compilers can not compile this version of the
kernel. I planning to compile a 2.4.37 kernel by tcc (with the same
config).

> The patch below seems to do the job on arm64, but it assumes that the
> return address is just above the frame address on the stack, which
> might not be true on other architectures.

Excelent, thanks!

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to