473,378 Members | 1,571 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Typical Exception Handling Implementation

Don't know if this is a C++ /language/ question, but I think this may be the
best place to ask.

What's a typical implementation of the exception handling mechanism in C++?
Specifically...

1. How do they track which auto objects have been constructed, and in which
order?

2. Where is the code stored that implements stack unwinding?

3. What's a typical strategy for finding the appropriate exception handler?
Does exception handling always imply the use of RTTI?

-dr
Oct 2 '05 #1
3 1589
Dave Rahardja wrote:
Don't know if this is a C++ /language/ question, but I think this may be the
best place to ask.
Alas, it's not.

What's a typical implementation of the exception handling mechanism in C++?
Specifically...

1. How do they track which auto objects have been constructed, and in which
order?

2. Where is the code stored that implements stack unwinding?

3. What's a typical strategy for finding the appropriate exception handler?
Does exception handling always imply the use of RTTI?


'Round these parts, the answer is `it's magic'!

Advice: Try news:comp.compilers.
Be advised that it's a moderated group, so answers may be long in
coming. (Of course, scouring its archives would likely give you at least
some information.)

HTH,
--ag

--
Artie Gold -- Austin, Texas
http://goldsays.blogspot.com (new post 8/5)
http://www.cafepress.com/goldsays
"If you have nothing to hide, you're not trying!"
Oct 2 '05 #2
On Sat, 01 Oct 2005 23:02:17 -0500, Artie Gold <ar*******@austin.rr.com>
wrote:

Advice: Try news:comp.compilers.
Be advised that it's a moderated group, so answers may be long in
coming. (Of course, scouring its archives would likely give you at least
some information.)


It would be great if my ISP (Road Runner) carried that newsgroup. Oh well.

-dr
Oct 2 '05 #3
GB
Dave Rahardja wrote:
It would be great if my ISP (Road Runner) carried that newsgroup. Oh well.


If you don't mind using a web interface, you can access Usenet news
groups for reading and posting through groups.google.com. Enter the
group name in the search box, and you will get the recent subject
headers for the group. The compiler group is at

http://groups.google.com/group/comp.compilers

Gregg
Oct 2 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Ritz, Bruno | last post by:
hi in java i found that when a method has a throws clause in the definition, callers must either handle the exceptions thrown by the method they are calling or "forward" the exception to the...
9
by: Kevin Goodsell | last post by:
If I'm writing a class that will be used as an exception, what kinds of things do I need to watch out for? For example, is it necessary to make sure that the members of the class don't throw? ...
10
by: Bill Davidson | last post by:
Hi there, Please forgive me for posting this article on multiple groups. Being new in the newsgroups, I was not sure which group would have been appropriate for my question. Sorry. My...
28
by: Frank Puck | last post by:
Meanwhile there are at least 8 years that compilers exist, which provide a working implementation of C++ Exception Handling. Has anything changed meanwhile? From my point of view nothing has...
5
by: juergen perlinger | last post by:
Hello out there. sometimes I need to have proper control of the floating point arithmetic of the C(and C++) runtime system, and using the f.p. exception handling of the C99 standard is quite...
12
by: Subhransu Sekhar Sahoo | last post by:
Hi All, I have a doubt in the implementation of C++ try catch exception handling procedure. Whenever there is a through, the execution has to go to the point of catch. Now, if the catch block...
132
by: Zorro | last post by:
The simplicity of stack unraveling of C++ is not without defective consequences. The following article points to C++ examples showing the defects. An engineer aware of defects can avoid...
1
by: George2 | last post by:
Hello everyone, Such code segment is used to check whether function call or exception- handling mechanism runs out of memory first (written by Bjarne), void perverted() { try{
35
by: eliben | last post by:
Python provides a quite good and feature-complete exception handling mechanism for its programmers. This is good. But exceptions, like any complex construct, are difficult to use correctly,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.