tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] a.out support (was Re: add an executable format?)


From: tccm
Subject: Re: [Tinycc-devel] a.out support (was Re: add an executable format?)
Date: Sat, 4 Feb 2023 18:08:18 +0100

Hello Brian,

On Sat, Feb 04, 2023 at 02:28:32PM +0000, Brian Callahan wrote:
> One thing I noticed in your elf2aout.c comments is that Minix-2 only
> supports 14-character file names. You can make the temp file much
> shorter if needed (e.g., hard code it to be something like "temp.aout").

This would introduce possible collisions between simultaneously run
compilations to different files. A cleaner solution would be to use
a randomly generated name but even this can be a can of worms on old
systems.

In practice I would find it sufficient and better for simplicity,
to add a warning in the man page about the possible naming issues.

Best of all would be of course to support aout internally and write the
resulting file directly. Then tcc could be also built smaller for aout
platforms, by dropping elf and dynamic linking. Achieving this would be
probably not easy, given that tcc was made for elf from the beginning
(? what do tcc gurus say?).

> Would it be possible for you to share binaries of your new TCC? I
> finally got Minix-2 i386 running on VirtualBox and it would be nice to
> try out TCC there.

Hopefully tomorrow. Let me get back to you then.

Cheers
/tccm




reply via email to

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