For those who wanna do a C++ kernel.

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

For those who wanna do a C++ kernel.

Post by Pype.Clicker »

i just found a quite interresting paper about "how c++ compilers implement exception", which looks very clear and detailed, neatly illustrated and stuff at http://www.codeproject.com/cpp/exceptionhandler.asp

I already posted the link at http://www.invalidsoftware.net, but i thought it desserves a greater audience :-)

Ready ... Set ... Print!
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:For those who wanna do a C++ kernel.

Post by Solar »

I hate being the spoilsport, but the article is about how VisualC++ implements exceptions - structured exception handling, which by design rules out zero-overhead exceptions, and is patented by Microsoft unless I am seriously mistaken.
Every good solution is obvious once you've found it.
chris

Re:For those who wanna do a C++ kernel.

Post by chris »

I implemented exception handling library for VC++ that is accompanied with this article. To replace the exception handler provided by VC++ with my handler, call the following function:
Doesn't this mean he did his own or am I/ mistaken.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:For those who wanna do a C++ kernel.

Post by Solar »

Finally I had the time to read that article on something comfortable (instead of my 640x240 PDA display). ;-)

I agree it's interesting read if you haven't delved into exception handling technique before. Still, highly VC++ specific... now, if someone could / would convert that article / library to GCC space... ;-)
Every good solution is obvious once you've found it.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:For those who wanna do a C++ kernel.

Post by Solar »

Anyone having downloaded the source zip? I'm reluctant to sign up for yet another accound somewhere on the 'net for a single download...
Every good solution is obvious once you've found it.
smurf975

Re:For those who wanna do a C++ kernel.

Post by smurf975 »

Solar wrote: Anyone having downloaded the source zip? I'm reluctant to sign up for yet another accound somewhere on the 'net for a single download...
www.bugmenot.com is the awnser to your problems. (signup problem)
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:For those who wanna do a C++ kernel.

Post by Pype.Clicker »

From 'invalidsoftware.net' community:

Update
I've found the specification on Exception Handling used by GCC, take a look at: http://www.codesourcery.com/cxx-abi/abi-eh.html
Post Reply