{"title":"Source-Level Linkage: Adding Semantic Information to C++ Fact-bases","authors":"Daqing Hou, H. Hoover","doi":"10.1109/ICSM.2006.61","DOIUrl":null,"url":null,"abstract":"Facts extracted from source code have been used to support a variety of software engineering activities, ranging from architectural understanding, through detection of design patterns, to program exploration. Several fact extractors have been developed and published in the literature, but most of them extract facts only from individual compilation units. Linking multiple fact-bases is largely overlooked. Source-level linkage is different from compilation linkage. Its goal is to assist a software engineer, not to produce an executable program. Thus a source-level linker needs to collect as many as possible facts that may be potentially helpful to a software engineer's task, many of which are not available from a compiler linker. We present the design of a source-level linker for C++. This linker has been used to analyze a dozen of Microsoft Foundation Classes (MFC) programs and over 200 C++ programs that cover an extensive subset of C++ features, including templates from the standard template library (STL). As a further validation, we design a structural constraint language, SCL, to express and machine-check a wide range of constraints on the abstract semantics graph (ASG) produced by the linker","PeriodicalId":436673,"journal":{"name":"2006 22nd IEEE International Conference on Software Maintenance","volume":"31 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2006-09-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"5","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2006 22nd IEEE International Conference on Software Maintenance","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICSM.2006.61","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 5
Abstract
Facts extracted from source code have been used to support a variety of software engineering activities, ranging from architectural understanding, through detection of design patterns, to program exploration. Several fact extractors have been developed and published in the literature, but most of them extract facts only from individual compilation units. Linking multiple fact-bases is largely overlooked. Source-level linkage is different from compilation linkage. Its goal is to assist a software engineer, not to produce an executable program. Thus a source-level linker needs to collect as many as possible facts that may be potentially helpful to a software engineer's task, many of which are not available from a compiler linker. We present the design of a source-level linker for C++. This linker has been used to analyze a dozen of Microsoft Foundation Classes (MFC) programs and over 200 C++ programs that cover an extensive subset of C++ features, including templates from the standard template library (STL). As a further validation, we design a structural constraint language, SCL, to express and machine-check a wide range of constraints on the abstract semantics graph (ASG) produced by the linker
从源代码中提取的事实已被用于支持各种软件工程活动,从架构理解,到设计模式检测,再到程序探索。在文献中已经开发和发表了一些事实提取器,但它们中的大多数只从单个编译单元中提取事实。将多个事实基础联系起来在很大程度上被忽视了。源级链接不同于编译链接。它的目标是帮助软件工程师,而不是生成一个可执行的程序。因此,源代码级链接器需要收集尽可能多的事实,这些事实可能对软件工程师的任务有潜在的帮助,其中许多事实是编译器链接器无法提供的。我们设计了一个c++的源代码级链接器。这个链接器已经被用来分析十几个Microsoft Foundation Classes (MFC)程序和超过200个c++程序,这些程序涵盖了广泛的c++特性子集,包括来自标准模板库(STL)的模板。作为进一步的验证,我们设计了一种结构约束语言SCL来表达和机器检查链接器产生的抽象语义图(ASG)上的各种约束