C++ RTTI implementation

All about the OSDev Wiki. Discussions about the organization and general structure of articles and how to use the wiki. Request changes here if you don't know how to use the wiki.
Post Reply
jobn
Posts: 5
Joined: Sun Sep 05, 2010 7:32 am

C++ RTTI implementation

Post by jobn »

I have implemented RTTI support for my kernel (i.e. support for typeid and dynamic_cast). Since the article about RTTI on the wiki doesn't explain anything about the implementation, I would like to share mine. What would be the best way to do this?
User avatar
qw
Member
Member
Posts: 792
Joined: Mon Jan 26, 2009 2:48 am

Re: C++ RTTI implementation

Post by qw »

I'm not sure if it would be useful. RTTI is very compiler-specific.
jobn
Posts: 5
Joined: Sun Sep 05, 2010 7:32 am

Re: C++ RTTI implementation

Post by jobn »

Sure but is that a problem? The article about C++ already has some compiler specific sections.
By the way, my implementation is made for GCC.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: C++ RTTI implementation

Post by Combuster »

Just add your info to the wiki. We already assume people use a specific configuration of GCC, so that shouldn't be a problem.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
qw
Member
Member
Posts: 792
Joined: Mon Jan 26, 2009 2:48 am

Re: C++ RTTI implementation

Post by qw »

jobn wrote:Sure but is that a problem? The article about C++ already has some compiler specific sections.
True, and most of us are using GCC anyway. Perhaps it should go under GCC instead of C++ if it is GCC-specific.
Post Reply