Re: Solaris 64bit mode: crash in longjmp()
Claus Assmann <[email protected]> Sun, 7 Dec 2003 08:27:56 -0800
| Newsgroups | gmane.comp.lib.state-threads.devel |
|---|---|
| Message-ID | <[email protected]> |
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! ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click