public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] dynamic_cast & RTTI (c++)
@ 2004-07-27  0:22 Richard.von.Lehe
  2004-07-27 11:06 ` Bart Veer
  0 siblings, 1 reply; 2+ messages in thread
From: Richard.von.Lehe @ 2004-07-27  0:22 UTC (permalink / raw)
  To: ecos-discuss

Where can I find out if the powerpc cross-compiler (powerpc-eabi-g++) supports RTTI?  Everywhere I look people always use the option -fno_rtti, but I want to know for sure that it's not supported.

Thanks,
Rich

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] dynamic_cast & RTTI (c++)
  2004-07-27  0:22 [ECOS] dynamic_cast & RTTI (c++) Richard.von.Lehe
@ 2004-07-27 11:06 ` Bart Veer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Veer @ 2004-07-27 11:06 UTC (permalink / raw)
  To: Richard.von.Lehe; +Cc: ecos-discuss

>>>>> "Richard" == Richard von Lehe <Richard.von.Lehe@gd-ais.com> writes:

    Richard> Where can I find out if the powerpc cross-compiler
    Richard> (powerpc-eabi-g++) supports RTTI? Everywhere I look
    Richard> people always use the option -fno_rtti, but I want to
    Richard> know for sure that it's not supported.

AFAIK RTTI should work fine if you don't disable it with -fno-rtti.
The reason eCos disables it by default is to save memory: RTTI
requires some extra data in every object, plus the typeid data itself.

You do have to be somewhat careful not to mix code that has been
compiled with and without -fno-rtti. RTTI support can change the
layout of C++ objects, so if e.g. an object is created in code
compiled with -fno-rtti and then used in code compiled with RTTI then
things can get very confusing.

Bart

-- 
Bart Veer                       eCos Configuration Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-27 10:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-27  0:22 [ECOS] dynamic_cast & RTTI (c++) Richard.von.Lehe
2004-07-27 11:06 ` Bart Veer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).