Program slicing is a program analysis technique initially introduced to assist debugging, based on the observation that programmers mentally form program slices when they debug and understand programs. Namely, only those statements need to be investigated that actually influenced the erroneous value, and eventually, these statements constitute the backward dynamic program slice. An efficient algorithm to compute such slices has been implemented in the GCC/GDB environment, which adds a new slice command to retrieve the slice for a given program entity. In this paper, a background on program slicing is given, followed by the details of implementation. The dependences are computed after 'gimplification' in GCC, while STABS format is used to transfer them to GDB. The initial experimental results are presented as well.
|Number of pages||10|
|Publication status||Published - Dec 1 2007|
|Event||GCC and GNU Toolchain Developers' Summit 2007 - Ottawa, ON, Canada|
Duration: Jul 18 2007 → Jul 20 2007
|Other||GCC and GNU Toolchain Developers' Summit 2007|
|Period||7/18/07 → 7/20/07|
ASJC Scopus subject areas