Re: [PATCH 1/5] add SWAP macro
From: Ramsay Jones <hidden>
Date: 2017-02-01 00:44:10
From: Ramsay Jones <hidden>
Date: 2017-02-01 00:44:10
On 31/01/17 21:02, René Scharfe wrote: [snip]
quoted
It would be trivially "optimized" out of the box, even when compiling with Tiny C or in debug mode.Such a compiler is already slowed down by memset(3) calls for initializing objects and lack of other optimizations. I doubt a few more memcpy(3) calls would make that much of a difference. NB: git as compiled with TCC fails several tests, alas. Builds wickedly fast, though.
Hmm, a couple of years ago, I used tcc to build git and it worked just fine (and it passed all tests). Prompted by this note, I just built tcc from the current mob branch (@5420bb8) and built git OK, but, yes, lots of tests now fail. :( ATB, Ramsay Jones