Re: [Tinycc-devel] Re : Re: Re : Some questions regarding of TCC's optimizations.

2022-04-06 Thread Domingo Alvarez Duarte
Hello Brian ! I just applied you changes to my fork of tcc made fully reentrant here https://github.com/mingodad/tinycc and tested with the script shown bellow building sqlite3 with tcc and gcc -O0. The resulting sqlite3 was tested creating a database from 150MB of sql and the resulting

Re: [Tinycc-devel] Re : Re: Re : Some questions regarding of TCC's optimizations.

2022-04-06 Thread Brian Callahan
Seeing as I've had all positive feedback on this, here's a more complete diff that I think is suitable for committing. It does the following: 1. Converts movl $0, %e{ax,cx,dx,sp,si,di} to xorl %e{ax,cx,dx,sp,si,di}, %e{ax,cx,dx,sp,si,di} 2. Converts movq $0, %r{ax,cx,dx,sp,si,di} to xorl

Re: [Tinycc-devel] Re : Re: Re : Some questions regarding of TCC's optimizations.

2022-04-06 Thread rempas via Tinycc-devel
6 Απρ 2022, 04:28 Από bcal...@posteo.net: > On 4/5/2022 9:03 PM, Brian Callahan wrote: > >> bin old new diff%reduction >> --- --- --- -- >> tcc 328786 325878 29080.88 >> libtcc.a 20214 20213 201 0.99 >> bcheck.o

Re: [Tinycc-devel] Re : Re: Re : Some questions regarding of TCC's optimizations.

2022-04-05 Thread Brian Callahan
On 4/5/2022 9:03 PM, Brian Callahan wrote: > bin old new diff%reduction > --- --- --- -- > tcc 328786 325878 29080.88 > libtcc.a 20214 20213 201 0.99 > bcheck.o 23254 23209 45 0.19 > bt-exe.o

Re: [Tinycc-devel] Re : Re: Re : Some questions regarding of TCC's optimizations.

2022-04-05 Thread Brian Callahan
So then let's take it slow, starting with the lowest of low-hanging fruit and showing numbers along the way. The patch below improves the x86_64 codegen to convert: movl $0, %e{ax,cx,dx,sp,si,di} to: xorl %e{ax,cx,dx,sp,si,di}, %e{ax,cx,dx,sp,si,di} Here are benchmark numbers of the .text sizes

Re: [Tinycc-devel] Re : Re: Re : Some questions regarding of TCC's optimizations.

2022-04-05 Thread Domingo Alvarez Duarte
Devel Envoyé: Tue, 29 Mar 2022 21:12:37 +0200 (CEST) Objet: Re: [Tinycc-devel]  Re :  Some questions regarding of TCC's optimizations. Thanks a lot! I will look at it! ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman

Re: [Tinycc-devel] Re : Re: Re : Some questions regarding of TCC's optimizations.

2022-04-04 Thread Elijah Stone
via Tinycc-devel À: Tinycc Devel Cc: rem...@tutanota.com, Tinycc Devel Envoyé: Tue, 29 Mar 2022 21:12:37 +0200 (CEST) Objet: Re: [Tinycc-devel]  Re :  Some questions regarding of TCC's optimizations. Thanks a lot! I will look at it! ___ Tinycc-devel

Re: [Tinycc-devel] Re : Re: Re : Some questions regarding of TCC's optimizations.

2022-04-04 Thread Domingo Alvarez Duarte
, 29 Mar 2022 21:12:37 +0200 (CEST) Objet: Re: [Tinycc-devel]  Re :  Some questions regarding of TCC's optimizations. Thanks a lot! I will look at it! ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo

Re: [Tinycc-devel] Re : Re: Re : Some questions regarding of TCC's optimizations.

2022-04-04 Thread Brian Callahan
adorad >>> >>> - Mail d'origine - >>> De: rempas via Tinycc-devel >>> À: Tinycc Devel >>> Cc: rem...@tutanota.com, Tinycc Devel >>> Envoyé: Tue, 29 Mar 2022 21:12:37 +0200 (CEST) >>> Objet:

Re: [Tinycc-devel] Re : Re: Re : Some questions regarding of TCC's optimizations.

2022-04-04 Thread Domingo Alvarez Duarte
) Objet: Re: [Tinycc-devel] Re : Some questions regarding of TCC's optimizations. Thanks a lot! I will look at it! ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] Re : Re: Re : Some questions regarding of TCC's optimizations.

2022-03-31 Thread rempas via Tinycc-devel
ue, 29 Mar 2022 21:12:37 +0200 (CEST) > Objet: Re: [Tinycc-devel] Re : Some questions regarding of TCC's > optimizations. > Thanks a lot! I will look at it! ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel