OT: Why -g when compiling

Miki Tebeka miki.tebeka at zoran.com
Tue Dec 23 18:26:43 EST 2003


Hello Michael,

> > Can anyone tell me why when builiding Python gcc gets "-g" option as well as "-O3"?
> > Apart from bigger objects what does "-g" gives a non-developer of Python?
> 
> It means if you manage to core python, we can hold your hands to find
> out with gdb where it's crashed.  Why do you ask?  
Just out of curiosity. Seen it in many apps when building and always
wondered.

> Disk space is cheap.
Yes but memory sometimes isn't. On my cygwin installation the
libpython2.3.dll goes from 2.9MB to 1.1MB. On machines with little RAM
(embdded ...) this matters a lot.

Thanks.
Miki




More information about the Python-list mailing list