Sujet : Re: C23 thoughts and opinions
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 26. May 2024, 21:26:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240526232651.00002d2e@yahoo.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
User-Agent : Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
On Sun, 26 May 2024 19:01:21 +0100
bart <
bc@freeuk.com> wrote:
On 26/05/2024 17:35, Michael S wrote:
On Sun, 26 May 2024 16:25:51 +0100
bart <bc@freeuk.com> wrote:
>
Back to the 5MB test:
>
Tiny C 1.7s 2.9MB/sec (Tcc doesn't use any IR)
>
mcc 3.7s 1.3MB/sec (my product; uses intermediate
ASM)
Faster than new MSVC, but slower than old MSVC.
My mcc is never going to be fast, because it uses ASM, which itself
will generate a text file several times larger than the C (so the
line "123," in C ends up as " db 123" in the ASM file).
>
Generation of asm at 7-8 MB/s sounds feasible even on slow computer.
And once you have asm in right format, 'gnu as' processes it quite fast.
On faster computer I had seen ~30 MB/s. I'd guess the slower one
should be able to do it at 15 MB/s. So, generation+assembling together
could run at ~5 MB/s. The trick here is to use format that 'gnu as' was
optimized for. To know what it is, look at the output of gcc -S.