[Python-Dev] ANSI-fication (was: RE: [Patches] fix simple 64-bit warnings/errorsin signalmodule.c and bufferobject.c)

M.-A. Lemburg mal@lemburg.com
Wed, 07 Jun 2000 00:53:02 +0200


Fredrik Lundh wrote:
> 
> note that 1.6 won't build on non-ANSI platforms; lots of new
> stuff, including the unicode type, the builtin exceptions, and
> SRE are pure ANSI.
> 
> (btw, what are all those "register" declarations doing in MAL's
> version of unicodeobject.c?  does any modern compiler even
> care about that keyword?)

"register" helps compilers in situations where normal
optimizations don't give satisfying results, e.g. to aid
in keeping often used variables or counters in registers
rather than on the stack. It can also help with inling
functions and can speed up parameter passing.

GCC is one such modern compiler that does care, not sure
about MSVC++. IBM's OS/2 compilers did (last time
I looked some 5 years ago ;).

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/