Presentation on theme: "Dynamic Analysis for Locating Product Features in Ada Code Laura J. White and Norman Wilde Department of Computer Science University of West Florida Pensacola,"— Presentation transcript:
Dynamic Analysis for Locating Product Features in Ada Code Laura J. White and Norman Wilde Department of Computer Science University of West Florida Pensacola, Florida
2 Pop Quiz 1. Estimate the total number of hours that you have invested, searching for code related to product features within large software systems. a. 0 0 b c d ,000,000,000, Was it fun?
3 Software Reconnaissance facilitates searching for product features in software systems, and is especially valuable in understanding unfamiliar programs.
4 History Reconnaissance method tried and refined with SERC support. Series of case studies conducted. l Trials on our own code. l Experienced C programmers "thinking aloud". l Software Engineers finding features in code that they were familiar with. Telecordia Software Reconnaissance tools for C and C++.
5 Trial Results Software Reconnaissance usually finds very good starting points for code exploration. Attention is focused on a small part of the code. Code familiar to Software Engineers: "I didn't know it was doing that!"
6 Why? In telephone software, find all code fragments that are involved with the "call forwarding" feature.
7 The Method 1. Instrument a copy of the program. 2. Compile instrumented program. 3. Execute instrumented program with test cases that do and do not exhibit the feature. Traces will be produced. 4. Analyze the traces.
8 Locating Marker Components Components executed in test cases that do exhibit the feature. Set 1
9 Locating Marker Components Components executed in test cases that do exhibit the feature. Components executed in test cases that do not exhibit the feature. Set 2Set 1
10 Locating Marker Components Look here first Components executed in test cases that do exhibit the feature. Components executed in test cases that do not exhibit the feature. Code components for feature Set 2Set 1Set 1 minus Set 2
11 Recon2 Software Reconnaissance for C and C++ code is available for download at Also available at this site: User's Manual FAQ WWW demo
12 Software Reconnaissance for Ada l Several SERC affiliates expressed an interest in applying Software Reconnaissance to Ada code, and especially to embedded systems. l The development of a Software Reconnaissance tool for Ada code is currently underway.
13 New Concerns Ada code has characteristics which make dynamic analysis interesting: 1. Impact of traces on embedded systems 2. Real-time constraints 3. Multi-tasking
15 Tracing Decisions 1. What events should be instrumented? 2. What information should be captured at each event? 3. How is trace monitoring performed?
16 Development The actual implementation of this tool has proceeded slowly as this software is the target used in the graduate software engineering project course, that emphasizes process and maintenance.
17 Current Architecture
18 Notations Instrumentation If (Recon_T_F( number = 1, string )); Traces 1 41T Marked Output >>>>> 100% T
19 Ada Performance Trials Impact of producing traces on software features. Reference point for selecting trace strategies. Hand-instrumented several small publicly available programs.
20 Ada Programs in Trials Program DescriptionSource ACESSALL.ADB Demonstrates access types [CORO] BTREE.ADB Binary tree demonstration [CORO] CHAR_LOO.ADB Loop printing characters [EMBR] FUNCRECR.ADB Recursive factorial calculation [CORO] GODYNSTR.ADB Dynamic string package [CORO] INPUT_TE.ADB Input of different data types [EMBR] LINKLIST.ADB Linked list of characters [CORO] MULTOUT.ADB File output [CORO] OPEROVER.ADB Operator overloading [CORO] RANDOM_T.ADB Test random number generator [EMBR]
23 Future Work Our future work will focus on: l Modifying the instrumentor to provide various types of instrumentation. l Moving the trace_manager_interface to a package that will be with'd by the user's main program unit. l Make use of the TraceGraph visualization tool.
25 TraceGraph Cell
26 Recon3 Toolkit Instrumentor --- Available by request Trace Manager Interface/Trace Array Package --- Trial version Trace Manager --- Platform dependent TraceGraph --- Prototype available on the web
27 Acknowledgements Architecture: Gus Lorberg Andre Wacaster Performance Trials: Barry Coker Carlos Trani Survey of Industrial Instrumentation Practices: Dean Knudson
28 Contact Information Laura J. White University of West Florida