[RFC 0/3] Cell SPU offloaded stdio

jschopp jschopp@austin.ibm.com
Wed Jan 10 00:14:00 GMT 2007


 > Most of the implementation comes from his patches in:
 >
 >   http://sourceware.org/ml/newlib/2006/msg00820.html
 >
 > and essentially, I've just modified the way to handle 'FILE'.
 >
 > I'd like to get some feedback on this solution.

I'll have to try this myself soon.  But my initial impression is that you ended up with 
FILE* being a pointer to a structure containing an int.  The problem is when you then pass 
this on the stack to the ppe it will try to treat it as an int.  The end result is that 
you end up having to do translation all over the place via the __sfp() function you made 
which is really not very cheap or very clean.

I like most of the rest of it fine.  I'll have to think about the best way to address this 
one issue and get back to you.



More information about the Newlib mailing list