[Paper Review] Software (Re-)Engineering with PSF
This paper demonstrates the use of Process Specification Formalism (PSF) for software reengineering and architecture specification, applying it to restructure the PSF compiler using the ToolBus coordination architecture. By modeling components and their interactions in PSF, the authors extract an architectural specification, build a parallel compiler, and validate it through simulation and animation, showing PSF's effectiveness in enabling modular, analyzable, and visualizable system design across multiple abstraction levels.
This paper investigates the usefulness of PSF in software engineering and reengineering. PSF is based on ACP (Algebra of Communicating Processes) and as some architectural description languages are based on process algebra, we investigate whether PSF can be used at the software architecture level, but we also use PSF at lower abstract levels. As a case study we reengineer the compiler from the Toolkit of PSF.
Motivation & Objective
- To evaluate PSF's utility in software engineering and reengineering at multiple abstraction levels, including system architecture and component coordination.
- To investigate whether PSF can serve as an architectural description language (ADL) by modeling a complex system's coordination and component interactions.
- To demonstrate the reengineering of an existing compiler by specifying it as a ToolBus application using a PSF library of ToolBus internals.
- To enable the construction of a parallel compiler through architectural specification and reuse of PSF components.
- To validate the approach using simulation and animation for verification and stakeholder communication.
Proposed method
- Define a PSF library of ToolBus internals, including data types, conversion functions, and communication primitives for tool-adapter and tool-ToolBus interaction.
- Specify the PSF compiler as a ToolBus application using the PSF library, modeling processes for parsing, normalization, and compilation phases.
- Use PSF's simulation and animation facilities to verify and visualize process interactions and communication flows.
- Extract an architectural specification from the PSF specification to guide the design of a parallel compiler.
- Implement the parallel compiler in Perl, using the ToolBus to coordinate multiple parsing and normalization processes.
- Reuse existing PSF specifications and implementations to build the parallel version, ensuring consistency and modularity.
Experimental results
Research questions
- RQ1Can PSF be effectively used at both architectural and implementation levels for software reengineering?
- RQ2To what extent can PSF serve as an architectural description language (ADL) when combined with the ToolBus coordination model?
- RQ3How does the use of PSF and ToolBus support the development of a parallel compiler through specification reuse and modularity?
- RQ4What is the performance overhead of using the ToolBus for coordination compared to a native implementation?
- RQ5How effective is PSF simulation and animation in supporting verification and stakeholder understanding of complex system behavior?
Key findings
- The PSF specification of the compiler, including its ToolBus-based coordination, enabled the extraction of a clear architectural model that guided the design of a parallel version.
- The parallel compiler achieved better performance than the original ToolBus-based version (M1: 11.6s vs. 12.8s), though not faster than the native PSF compiler due to communication overhead.
- On configuration M4, the parallel compiler outperformed the native PSF compiler (11.6s vs. 12.8s), indicating that parallelization benefits are realizable when communication costs are manageable.
- The use of PSF's simulation and animation facilities provided deep insight into process interactions, significantly improving understanding beyond static code or specification review.
- The modular and parameterized nature of PSF allowed effective reuse of component specifications and facilitated the construction of the parallel compiler with minimal rework.
- The ToolBus library in PSF enabled a clean separation between coordination logic and component behavior, supporting flexible and extensible system design.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.