New eCos uSTL port patch for review

cetoni GmbH - Uwe Kindler uwe.kindler@cetoni.de
Wed Aug 5 09:57:00 GMT 2009


Hi John,

I created a new uSTL patch for review with a lot of changes mentioned in 
our previous discussion. You will find the patch here:

http://www.cetoni.de/ecos_ustl20090805.zip

Here a the number of changes so far:

- package is now in language/cxx/ustl folder
- testcases in CDL file are now without cpp extension
- compiles and runs now with (-fno-exceptions, -fno-rtti) and
  (-fexceptions, -frtti)
- adjusted test harness (stdtest.h) to call CYG_TEST_NA() if
   cin, cout & cerr are not present
- adjusted ustl.cdl to require CYGINT_ISO_xxx instead of libc packages
- File I/O package only required if file streams are active
- fixed copyright notices  - copyright notice in changelog remained
   unchanged (almost all eCos ChangeLog files contain GPL license text)
- C99 compliant vsnprintf() return code is now configurable - default
   option is the old implementation
- test case snprintf_c99.c provided for check of return code and test
   for C99 compliant return code
- ustl.cdl requires C99 implementation of snprinf()

At the moment I have not touched the stdint.h file but I will have a 
lock at the newlib stdint.h file to check if I can use parts of it.

Mike Sharov told me that he plans a new uSTL release within the next 1 
or 2 days. He will fix the inconsistent use of #if MACRO and #ifdef 
MACRO checks in this new release so we can keep the changes to the 
source to a minumum. He further told me that uSTL releases are quite 
infrequent. So I think if I get this new relase I will try to implement 
it and then we should have a stable eCos uSTL implementation for a long 
period of time.

My last changes to the uSTL package showed that there are two 
contrasting requirements for this package. The first one is to make it 
highly configurable to reduce code size of final eCos image and the 
second one is to keep the changes to the uSTL source to a minimum to 
make a later import of a new version easy.

I decided to make the filestreams an option and also to make cin, cout 
and cerr optinal. Further configuration options would lead to an uSTL 
code that has a lot of modifications to the main uSTL source tree.

Regards, Uwe
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libc_stdio.patch
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20090805/4c42a12f/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ecosdb.patch
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20090805/4c42a12f/attachment-0001.ksh>


More information about the Ecos-patches mailing list