tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] linux-2.4 build scripts for tinycc uploaded - principle i


From: Michael Ackermann
Subject: [Tinycc-devel] linux-2.4 build scripts for tinycc uploaded - principle issues with x86
Date: Tue, 26 Nov 2024 00:30:22 +0000

The plan is to converge and fully re-integrate a complete
i486-tcc-linux-musl.iso distribution with bootstrappable.org

Currently, i could merely confirm binutils can be compiled/bootstrapped with tcc
for this. Too linux-2.4 compiles and boots supported with tcc, and the binutils
for 16bit asm. The linux-tcc repository is available at:

https://github.com/agg1/linux-tcc [1]

Although as86 would introduce a far less critical dependency
graph, it too could cause a circular dependency against tcc, depending on when
linux-2.4 booted into was necessary to proceed with bootstrapping, because 16bit
real-mode asm bootcode is needed rather early during bootstrapping.

It may not be necessary to rewrite linux/tccboot code for hex2/hex0 because
bootstrappable.org got a system integration to arrive at binutils and/or as86.
It would just be a little easier if a capable linux-2.4 kernel could be booted
earlier without relying on gcc and/or binutils.
So far i could only abandon gcc mandatory dependency for kernel and a complete
user-space of ~500 builds.

Regards
aggi

[1] Sadly i cannot upload to codeberg.org because it isn't compatible with
dropbear dbclient, maybe someone could offer a suitable alternative to publish
my work, including a little (s)ftp space.

On 2024-11-25 19:14, Liam Wilson wrote:
> On Mon, 25 Nov 2024 at 02:02, Michael Ackermann via Tinycc-devel
> <tinycc-devel@nongnu.org> wrote:
> 
> > - interestingly, earlier kernel versions (2.2 iirc) implemented their 16bit
> >   real-mode asm bootcode parts with another syntax than GNU gas one
> 
> iirc that's as86 from bin86 eg
> https://packages.debian.org/buster/bin86 . tcc might be able to
> compile that.
> 
> > I do not see a realistic chance to salvage 16bit real-mode support with 
> > tinycc
> > myself; and FYI bootstrappable.org chose a different approach to implement 
> > x86
> > bootcode with their hex0 languages and loaders.
> 
> I assume you have seen
> https://github.com/ironmeld/builder-hex0/blob/main/builder-hex0.hex2 ?
> That is a kernel for a subset of the Linux syscall interface written
> in the the hex2/hex0 languages from
> https://github.com/oriansj/stage0-posix-x86 . It might be viable to
> port the 16 bit code from the Linux kernel to hex2 or hex0.
> 
> Thanks
> Liam
> 
> _______________________________________________
> Tinycc-devel mailing list
> Tinycc-devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel

-- 

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]