> > I wasnt sure wheter I should post about this on gcc bug report list or > > here. Anyways, it seems that using -O2 flag with gcc causes huge >slowdown > > in memcmp(). However i dont see performance drop under linux, so I >suppose > > it is cygwin issue.
cygwin's gcc version may be using an outdated x86 'optimization' for memcmp. VC++ has a similar problem, see this: http://groups.google.com/groups?hl=en&threadm=ucZKhyE3BHA.1464%40tkmsftngp02&rnum=3&prev=/groups%3Fq%3Drep%2Bgroup:microsoft.public.dotnet.languages.vc%26hl%3Den%26selm%3DucZKhyE3BHA.1464%2540tkmsftngp02%26rnum%3D3 _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/