Page 1 of 1

pthread port for nds

Posted: Wed Sep 09, 2009 2:23 am
by m4c0
Is there any way to compile GNU Pth for NDS? I made a lot of searches on Google without success - it seems pthreads needs libc signal support to work (and newlib does not have such support).

I guess it should work as well as Minix3 process scheduling on 8086 machines or like DSLinux (looks like it uses an old-fashion kernel timer). Unfortunatelly, I couldn't figure out what is the best way to do it on pthreads.

Is such port possible?

Re: pthread port for nds

Posted: Thu Sep 10, 2009 11:20 am
by WinterMute
It really depends on what you want to do. In most cases you're much better rewriting your code to operate without threads - there's a fairly large negative impact on performance due to the limited stack space.

Re: pthread port for nds

Posted: Fri Sep 11, 2009 7:15 pm
by m4c0
Actually, this is a requirement of some software I'm trying to port... I managed to port FSU Threads to NDS, but setjmp/longjmp crashes... :|