OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 2:02 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: C++ RTTI implementation
PostPosted: Sat Feb 12, 2011 5:12 am 
Offline

Joined: Sun Sep 05, 2010 7:32 am
Posts: 5
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?


Top
 Profile  
 
 Post subject: Re: C++ RTTI implementation
PostPosted: Sat Feb 12, 2011 8:05 am 
Offline
Member
Member
User avatar

Joined: Mon Jan 26, 2009 2:48 am
Posts: 792
I'm not sure if it would be useful. RTTI is very compiler-specific.


Top
 Profile  
 
 Post subject: Re: C++ RTTI implementation
PostPosted: Sat Feb 12, 2011 8:13 am 
Offline

Joined: Sun Sep 05, 2010 7:32 am
Posts: 5
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.


Top
 Profile  
 
 Post subject: Re: C++ RTTI implementation
PostPosted: Sun Feb 13, 2011 7:11 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
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 ]


Top
 Profile  
 
 Post subject: Re: C++ RTTI implementation
PostPosted: Sun Feb 13, 2011 2:46 pm 
Offline
Member
Member
User avatar

Joined: Mon Jan 26, 2009 2:48 am
Posts: 792
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group