{"title":"Exception Handling in Fortran","authors":"V. Snyder","doi":"10.1145/2754942.2754943","DOIUrl":null,"url":null,"abstract":"Objections have been raised to block-structured exception handling, usually citing performance degradation. While some implementations of block-structured exception handling impose expense even if an exception does not occur, block-structured exception handling does not inevitably impose a significant execution-time penalty if an exception does not occur. For example, the Janus Ada compiler’s block-structured exception handling mechanism imposes very low cost if an exception does not occur, and the exception handling mechanism provided by the GNU Ada Translator (GNAT) imposes zero cost if an exception does not occur.","PeriodicalId":379614,"journal":{"name":"ACM SIGPLAN Fortran Forum","volume":"294 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2015-04-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM SIGPLAN Fortran Forum","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2754942.2754943","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Objections have been raised to block-structured exception handling, usually citing performance degradation. While some implementations of block-structured exception handling impose expense even if an exception does not occur, block-structured exception handling does not inevitably impose a significant execution-time penalty if an exception does not occur. For example, the Janus Ada compiler’s block-structured exception handling mechanism imposes very low cost if an exception does not occur, and the exception handling mechanism provided by the GNU Ada Translator (GNAT) imposes zero cost if an exception does not occur.
对块结构异常处理提出了反对意见,通常以性能下降为理由。尽管块结构异常处理的某些实现即使在没有发生异常的情况下也会造成开销,但如果没有发生异常,块结构异常处理并不必然会造成重大的执行时间损失。例如,如果不发生异常,Janus Ada编译器的块结构异常处理机制的成本非常低,而如果不发生异常,GNU Ada Translator (GNAT)提供的异常处理机制的成本为零。