pthread port for nds

support for the ARM toolchain
Post Reply
m4c0
Posts: 9
Joined: Wed May 27, 2009 11:46 am

pthread port for nds

Post by m4c0 » Wed Sep 09, 2009 2:23 am

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?

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: pthread port for nds

Post by WinterMute » Thu Sep 10, 2009 11:20 am

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

m4c0
Posts: 9
Joined: Wed May 27, 2009 11:46 am

Re: pthread port for nds

Post by m4c0 » Fri Sep 11, 2009 7:15 pm

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... :|

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests