Re: some char * optimizations in kernel

2001-02-25 Thread Ph. Marek
>> Furthermore, in the "char *"-case the pointer is stored in memory. > >It has to be, no matter of optimalization level. Some other module >might access that variable. You _could_ do static const char *..., but >it would probably not help. I know that the pointer is NEEDED (from the compilers pov

Re: some char * optimizations in kernel

2001-02-24 Thread Pavel Machek
Hi! > Hello everybody, > > looking through the sources I found several pieces like > lib/vsprintf.c, line 111: > const char *digits="0123456789abcdefghijklmnopqrstuvwxyz"; > > As tested with egcs-2.91.60 even with -O3 there is a difference > between > const char *digits="0123456789

some char * optimizations in kernel

2001-02-22 Thread Ph. Marek
Hello everybody, looking through the sources I found several pieces like lib/vsprintf.c, line 111: const char *digits="0123456789abcdefghijklmnopqrstuvwxyz"; As tested with egcs-2.91.60 even with -O3 there is a difference between const char *digits="0123456789abcdefghijklmnopqrs