From: Ramsay Jones Date: Wed, 01 Feb 2017 00:44:02 GMT Subject: Re: [PATCH 1/5] add SWAP macro Message-ID: <30d81b1c-1acc-4e4d-4f52-e056bbf7b3e2@ramsayjones.plus.com> In-Reply-To: <676ed19c-0c4e-341e-ba30-1f4a23440088@web.de> On 31/01/17 21:02, René Scharfe wrote: [snip] >> 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