From: Claus A. <sta...@es...> - 2003-12-07 16:27:40
|
On Sun, Dec 07, 2003, Gene wrote: > The fact is ST was never ported to 64-bit mode on Solaris. > In 64-bit mode (LP64) jmp_buf structure is completely different, > that's why you are getting crashes. If the structure is different, wouldn't it be more portable to use makecontext on SysV? I read a paper about GNU Pth where the different context switching methods are explained and it preferred makecontext if available (that's why I didn't find hints about a different layout, I checked sizeof(jmp_buf) and in 64bit mode it was as expected twice as big as in 32bit mode). > Now, how do you compile 64-bit mode with gcc? Special compiler > flags? Do you need special 64-bit gcc version? I have an access > to Solaris 9 box on Sourceforge farm so I may try to port it > if that box supports 64-bit mode: gcc -m64 is all you need (AFAIK), for Sun's compiler its cc -xarch=v9 Thanks! |