Abstract
In this paper we propose a virtual file system, which provides global declarations in source programs as virtual files to programmers. Global declarations means objects which declare identifiers in external scope, such as function definition and variable declaration. On SPDFS, programmers can edit virtual files directly by their favorite editors. Changes to declarations in a virtual file are to be applied to real source files automatically. SPDFS can also provide a set of relevant declarations distributed in different source files as a virtual file. Relevancy of declarations in this paper means references among declarations. SPDFS retrieves declarations which are referred by or refer to the target declaration and combine them in a virtual file. The depth of references can be specified in a file path by programmers. SPDFS reduces the amount of source programs which programmers need to read for editing and the amount of programmers' works for searching relevant declarations. We show an implementation of SPDFS using the portal file system on FreeBSD. The portal file system invokes commands for reading and writing a virtual file respectively. These commands work as user-land process. Because no modification of kernel is required, it is easy to customize the behavior of SPDFS. We also show the effectiveness of SPDFS by comparing numbers of lines of source programs which programmers need to read for editing.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.