From: Jonathan del Strother Date: Mon, 03 Aug 2009 07:36:38 GMT Subject: Re: x86 SHA1: Faster than OpenSSL Message-ID: <57518fd10908030036l22ccdcf1va2e8ee450c4f5ee5@mail.gmail.com> In-Reply-To: <20090803034741.23415.qmail@science.horizon.com> On Mon, Aug 3, 2009 at 4:47 AM, George Spelvin wrote: > (Work in progress, state dump to mailing list archives.) > > This started when discussing git startup overhead due to the dynamic > linker.  One big contributor is the openssl library, which is used only > for its optimized x86 SHA-1 implementation.  So I took a look at it, > with an eye to importing the code directly into the git source tree, > and decided that I felt like trying to do better. > FWIW, this doesn't work on OS X / Darwin. 'as' doesn't take a --32 flag, it takes an -arch i386 flag. After changing that, I get: as -arch i386 -o sha1-586.o sha1-586.s sha1-586.s:4:Unknown pseudo-op: .type sha1-586.s:4:Rest of line ignored. 1st junk character valued 115 (s). sha1-586.s:5:Alignment too large: 15. assumed. sha1-586.s:19:Alignment too large: 15. assumed. sha1-586.s:1438:Unknown pseudo-op: .size sha1-586.s:1438:Rest of line ignored. 1st junk character valued 115 (s). make: *** [sha1-586.o] Error 1 - at which point I have no idea how to fix it.