21 Jul
2009
21 Jul
'09
11:57 a.m.
However trying to build it on x86_64 gave me a compile time error - "This file is for x86 CPUs only" in swapcontext.cpp, since there is a #if !defined(i386) guard which produces this error.
Sorry, folks, I'm replying to myself - the problem was gone once I excluded swapcontext.cpp from my custom build process. Looks like coroutine cleverly fallbacks to POSIX makecontext and friends for anything non-linux-x86. Anyway, I believe it would be great to support linux x86_64 with a faster assembler implementation of swapcontext. I'll play around with the code and report back(if I'm lucky :) ) -- Best regards, Pavel