...
首页> 外文期刊>Journal of Software Maintenance and Evolution >Pragmatic source code reuse via execution record and replay
【24h】

Pragmatic source code reuse via execution record and replay

机译:通过执行记录和重播实现实用的源代码重用

获取原文
获取原文并翻译 | 示例
           

摘要

A key problem during copy–paste source code reuse is that, to reuse even a small section of code from arnprogram as opposed to an API, a programmer must include a huge amount of additional source code fromrnelsewhere in the same program. This additional code is notoriously large and complex, and portions can onlyrnbe identified at runtime. In this paper, we propose execution record/replay as a solution to this problem. Werndescribe a novel reuse technique that allows programmers to reuse functions from a C or C++ program, byrnrecording the execution of the program and selectively modifying how its functions are replayed. We havernimplemented our technique and evaluated it in an empirical study in which eight programmers used our toolrnto complete four tasks over four hours each. The participants found our technique to be easier than manuallyrnreusing the code as part of their project. We also found that the resulting code was smaller and less complexrnthan it would have been had the participants manually reused the code. Copyright © 2016 John Wiley &rnSons, Ltd.
机译:复制粘贴源代码重用过程中的一个关键问题是,要重用arnprogram中的一小段代码(而不是API),程序员必须在同一程序中的其他地方包含大量其他源代码。众所周知,此附加代码庞大而复杂,并且只能在运行时识别部分。在本文中,我们提出执行记录/重播作为该问题的解决方案。 Wern描述了一种新颖的重用技术,该技术允许程序员重用C或C ++程序的功能,方法是记录程序的执行并有选择地修改其功能的重放方式。我们已经实施了我们的技术并在一项实证研究中对其进行了评估,在该研究中,八个程序员使用我们的工具在每个四个小时内完成了四个任务。参与者发现我们的技术比在他们的项目中手动重新使用代码要容易得多。我们还发现,与参与者手动重用代码相比,所生成的代码更小,更简单。版权所有©2016 John Wiley&rnSons,Ltd.

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号