Hi everyone again,

trunk seems to build fine again with locale support. But here are a few
numbers:

-rw-r--r-- 1 tg freewrt 32860 Jul 27 07:47 libm-0.9.28.so
-rw-r--r-- 1 tg freewrt 79632 Aug  1 13:04 libm-0.9.28.so

The first one is libm from FreeWRT 1.0, the second one from trunk just now.
C99 math support weighs in at about 48 kB, but on the other hand, disabling
it will probably gain us only 40K or so because we still need some of the
newer functions integrated.

Plus, when comparing 1.0 and trunk, the latter is in general 3-5% larger.

Waldemar asked me to “make it a configurable option because it enlarges
µClibc by 300K” – but seeing these numbers, I don't think I should do it,
because current software does require a ISO C99 compliant math library
these days. Opinions?

-rw-r--r-- 1 tg freewrt 458156 Jul 27 07:47 libuClibc-0.9.28.so
-rw-r--r-- 1 tg freewrt 517880 Aug  1 13:04 libuClibc-0.9.28.so

Again, 1.0 vs trunk. I've integrated the most basic locale support;
‘en_US.UTF-8’ is supported as an alternative to ‘C’.

-rw-r--r-- 1 tg freewrt 465428 Jul 26 12:20 libuClibc-0.9.28.so

This is a little older trunk, so locale support is paid for with
about 50K of code/data. This isn't much; I'm thinking of making a
configure option but default it to on. Seeing we desupported most
of the 4MB targets, I wonder if the option is needed anyway – they
are VERY difficult to implement for µClibc because changing them
always requires a “make cleandir” (for the mere user).

There's no locale(1) or iconv(1) yet, though.

Comments?
//mirabile
-- 
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence.              -- Coywolf Qi Hunt
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers

Reply via email to