Modularizing Error Recovery - Google Sites

0 downloads 178 Views 787KB Size Report
Sep 23, 2009 - Parser. Intermediate (IR). Code Generator. Seman)c. Analyzer. IR Code. Op)mizer. Target Code. Generator.
Modularizing Error Recovery Jeeva Paudel, Christopher Dutchyn Department of Computer Science September 23, 2009

UNIVERSITY OF SASKATCHEWAN

Jeeva Paudel, ICSM’09, Edmonton

Modularizing Error Recovery

1

Error Handling

Introduction

Error Handling

U of S

Defines behavior in unintended situations Difficulties identifying all potential sources of errors new sources of errors emerge as software development progresses as requirements change

Jeeva Paudel, ICSM’09, Edmonton

Modularizing Error Recovery

2

Error Handling

Introduction

Error Handling in Compilers

U of S

Current compiler implementations fail to: explicitly identify the error-related control dependencies separately characterize the actions to take when programming errors are detected

Jeeva Paudel, ICSM’09, Edmonton

Modularizing Error Recovery

3

Error Handling

Structure

Poor Modularity in Error Handling

U of S

+),#-%'()*%' 0*1%+

?%B=/($+C&($3D%-+

23#%45($.('*-67+8+ +++9+ ++:($.%45($.('*-67+8+

;(-E%-+

+++9+

4--*-+>(&1$=&@+E/((&1$%-+

,%"(&)/+ C&($3D%-+

,3"A*$+2(A$%+ ?*(1%-+

!&'%-"%1=('%+6!F7+ G*1%+H%&%-('*-+ !F+G*1%+ I#)"=D%-+ 2(-@%'+G*1%+ H%&%-('*-+

++9+

,."0*1%+ 23#%45($.('*-67+8+

;-*1./'0*1%+ 23#%45($.('*-67+8+

+++9+ :($.%45($.('*-67+8+

+++9+

+++9+

+++9+ ;-%(&1$=&@+'(&@$%E+ J='K+E3"A*$+'(A$%+ $*(1=&@+*#%-()*&+

;-%