An analysis of programming language statement frequency in C, C++, and Java source code. (6th November 2014)
- Record Type:
- Journal Article
- Title:
- An analysis of programming language statement frequency in C, C++, and Java source code. (6th November 2014)
- Main Title:
- An analysis of programming language statement frequency in C, C++, and Java source code
- Authors:
- Zhu, Xiaoyan
Whitehead, E. James
Sadowski, Caitlin
Song, Qinbao - Abstract:
- <abstract abstract-type="main" id="spe2298-abs-0001"> <title>Summary</title> <p id="spe2298-para-0001">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 <monospace>for</monospace> statements more than C. Copyright © 2014 John Wiley & Sons, Ltd.</p> </abstract>
- Is Part Of:
- Software, practice & experience. Volume 45:Number 11(2015)
- Journal:
- Software, practice & experience
- Issue:
- Volume 45:Number 11(2015)
- Issue Display:
- Volume 45, Issue 11 (2015)
- Year:
- 2015
- Volume:
- 45
- Issue:
- 11
- Issue Sort Value:
- 2015-0045-0011-0000
- Page Start:
- 1479
- Page End:
- 1495
- Publication Date:
- 2014-11-06
- Subjects:
- Computer software -- Periodicals
Computer programming -- Periodicals
Computer programs -- Periodicals
005.3 - Journal URLs:
- http://onlinelibrary.wiley.com/ ↗
- DOI:
- 10.1002/spe.2298 ↗
- Languages:
- English
- ISSNs:
- 0038-0644
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 8321.453000
British Library DSC - BLDSS-3PM
British Library STI - ELD Digital store - Ingest File:
- 3396.xml