This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: limit for # of items created with "new" ?


On Tue, 24 Sep 2002, Hans Horn wrote:

> Igor,
>
> "Igor Pechtchanski" <pechtcha@cs.nyu.edu> wrote in message Pine.GSO.4.44.0209241841560.7805-100000@slinky.cs.nyu.edu">news:Pine.GSO.4.44.0209241841560.7805-100000@slinky.cs.nyu.edu...
> >
> > Don't forget the object headers - depending on which options you use, they
> > can be 8 bytes per object.
> > [snip]
>
> Are there options that cost less (in terms of object headers) that the
> defaults?
> [snip]

Oh, yeah, almost forgot:

`-fno-rtti'
     Disable generation of the information used by C++ runtime type
     identification features (`dynamic_cast' and `typeid').  If you
     don't use those parts of the language (or exception handling,
     which uses `dynamic_cast' internally), you can save some space by
     using this flag.

This is one that comes to mind, there should be others, too.
Try 'info gcc'.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]