From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: Sergei Organov Cc: ecos-discuss@sourceware.cygnus.com Subject: Re: [ECOS] Re: Ecos Port to PPC509/PPC555 Date: Tue, 28 Sep 1999 07:42:00 -0000 Message-id: <37F0D3C3.B36B0E45@cygnus.co.uk> References: <37E80554.7D56118D@danlawinc.com> <199909231448.PAA13861@sheesh.cygnus.co.uk> <87puz8v8sh.fsf@osv.javad.ru> <199909271854.TAA26830@sheesh.cygnus.co.uk> <37F00D1F.FDEC9E27@cygnus.co.uk> <874sgfz3at.fsf@osv.javad.ru> X-SW-Source: 1999-09/msg00047.html Sergei Organov wrote: > > Jonathan Larmour writes: > > > [...] > > Certainly one problem with doing this for (e.g.) libm is that sometimes > > functions in there get called from all around the place, e.g. > > *printf/*scanf. So there's a lot of scope for programmer error if they think > > a thread doesn't ever need an FP context. Something to bear in mind > > anyway. > > Isn't it better to just fix *printf/*scanf to don't use FP when it is > not required by input format. Or am I missing something and this is > just impossible? I suppose you could separate out the vararg extraction into a separate function (and make sure that function could never be inlined), but it would be non-trivial given the "design" of Berkeley printf/scanf from which the eCos version is derived. Jifl -- Cygnus Solutions, 35 Cambridge Place, Cambridge, UK. Tel: +44 (1223) 728762 "I used to have an open mind but || Get yer free open source RTOS's here... my brains kept falling out." || http://sourceware.cygnus.com/ecos Help fight spam! http://spam.abuse.net/ These opinions are all my own fault