This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [RFC 0/3] Cell SPU offloaded stdio
- From: jschopp <jschopp at austin dot ibm dot com>
- To: Kazunori Asayama <asayama at sm dot sony dot co dot jp>
- Cc: newlib at sources dot redhat dot com
- Date: Tue, 09 Jan 2007 18:13:49 -0600
- Subject: Re: [RFC 0/3] Cell SPU offloaded stdio
- References: <20070109.194507.70147929.asayama@echo.sm.sony.co.jp>
> 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.