首页> 外文期刊>Software >An analysis of programming language statement frequency in C, C plus plus , and Java source code
【24h】

An analysis of programming language statement frequency in C, C plus plus , and Java source code

机译:C,C plus plus和Java源代码中的编程语言语句频率分析

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

摘要

Statement frequency data can inform programming language research and provide a solid basis for frequency-based code analysis. This paper presents an analysis of programming language statement frequency in a large corpus of C, C++, and Java source code, comprised of more than 54 million lines of code. Across these languages, the top four work-performing statement types are Method/Function Call, Assignment, If, and Return. As compared to studies of Formula Translating System, Common Business Oriented Language and Programming Language One in the 1970s, the main change is the prevalence of method/function calls. Statement use frequency across languages is remarkably similar, and within each individual language, most statement types have a frequency distribution that occupies a small range. A more detailed examination of assignment and looping statement types shows that many assignments simply involve copying of data and that C++/Java use for statements more than C. Copyright (C) 2014 John Wiley & Sons, Ltd.
机译:语句频率数据可以为编程语言研究提供信息,并为基于频率的代码分析提供坚实的基础。本文对C,C ++和Java源代码的大型语料库中的编程语言语句频率进行了分析,该代码集包含超过5400万行代码。在这些语言中,执行性能最高的四种语句类型是“方法/函数调用”,“分配”,“如果”和“返回”。与1970年代的公式翻译系统,面向通用业务的语言和编程语言之一的研究相比,主要的变化是方法/函数调用的普及。跨语言的语句使用频率非常相似,并且在每种单独的语言中,大多数语句类型的频率分布占用的范围很小。对赋值和循环语句类型进行更详细的研究后发现,许多赋值仅涉及数据的复制,并且C ++ / Java对语句的使用超过了C。版权所有(C)2014 John Wiley&Sons,Ltd.

著录项

  • 来源
    《Software》 |2015年第11期|1479-1495|共17页
  • 作者单位

    Xi An Jiao Tong Univ, Xian 710049, Shaanxi, Peoples R China;

    Univ Calif Santa Cruz, Santa Cruz, CA 95064 USA;

    Univ Calif Santa Cruz, Santa Cruz, CA 95064 USA;

    Xi An Jiao Tong Univ, Xian 710049, Shaanxi, Peoples R China;

  • 收录信息 美国《科学引文索引》(SCI);美国《工程索引》(EI);
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

    statement frequency; metrics; source code;

    机译:陈述频率;指标;源代码;

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号