Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Wu, Fei <Fei.Wu@wi...> - 2008-05-12 08:49:34
|
Hi folks, I have a try to port crackerjack to other architectures than x86, could you please take a review if it's ok? Generally speaking, there are 2 main issues when it's compiled against other arches: 1. There are some macros which are not defined, e.g, SYS_fadvise64_64 and __NR_fcntl64. For such a case, I just define it as -1, so these syscall() just fail. 2. Some header files exist only in x86, e.g. ldt.h. I enclose the file with CPP predefined macros: #ifdef defined(__i386__) || defined(__x86_64__) /* old version */ #else int main(void) { return 1; } #endif Any feedback is appreciated. Thanks, Wufei. |