skip to main content
10.1145/3593663.3593671acmotherconferencesArticle/Chapter ViewAbstractPublication PagesecseeConference Proceedingsconference-collections
research-article

An Eye Tracking Study on MISRA C Coding Guidelines

Published: 19 June 2023 Publication History

Abstract

C is one of the most widely used programming languages - MISRA C is one of the most known sets of coding guidelines for C. This paper examines the usefulness and comprehensibility of the MISRA C:2012 guidelines in an eye tracking study. There, subjects encounter non-compliant code in four different code review settings: with no additional reference, with an actual MISRA C guideline, with a case-specific interpretation of a MISRA C guideline, and with a compliant version of the code. The data collected was analyzed not only in terms of the four presentation styles, but also by dividing the subjects into experience levels based on their semesters of study or years of work experience. Regarding the difference between actual and interpreted guidelines, we found that for interpreted guidelines the error detection rate is higher whereas the duration and frequency of visits to the guideline itself are mainly lower. This suggest that the actual guidelines are less useful and more difficult to understand. The former is contradicted by the subjects’ opinions: when surveyed, they rated the usefulness of the actual guidelines higher.

References

[1]
Roman Bednarik. 2012. Expertise-dependent visual attention strategies develop over time during debugging with multiple code representations. International Journal of Human-Computer Studies 70, 2 (2012), 143–155. https://doi.org/10.1016/j. ijhcs.2011.09.003
[2]
Roman Bednarik and Markku Tukiainen. 2008. Temporal eye-tracking data. In Proceedings of the 2008 symposium on Eye tracking research & applications(ACM Conferences), Kari-Jouko Räihä (Ed.). ACM, New York, NY, 99. https://doi.org/10.1145/1344471.1344497
[3]
Andrew Begel and Hana Vrzakova. 2018. Eye movements in code review. In Proceedings of the Workshop on Eye Movements in Programming, Roman Bednarik and Carsten Schulte (Eds.). ACM, New York, NY, USA, 1–5. https://doi.org/10.1145/3216723.3216727
[4]
Dave Binkley, Marcia Davis, Dawn Lawrie, Jonathan I. Maletic, Christopher Morrell, and Bonita Sharif. 2013. The impact of identifier style on effort and comprehension. Empirical Software Engineering 18, 2 (2013), 219–276. https://doi.org/10.1007/s10664-012-9201-4
[5]
Teresa Busjahn, Roman Bednarik, Andrew Begel, Martha Crosby, James H. Paterson, Carsten Schulte, Bonita Sharif, and Sascha Tamm. 2015. Eye Movements in Code Reading: Relaxing the Linear Order. In 2015 IEEE 23rd International Conference on Program Comprehension. IEEE, 255–265. https://doi.org/10.1109/ICPC.2015.36
[6]
Teresa Busjahn, Roman Bednarik, and Carsten Schulte. 03262014. What influences dwell time during source code reading?. In Proceedings of the Symposium on Eye Tracking Research and Applications, Pernilla Qvarfordt and Dan Witzner Hansen (Eds.). ACM, New York, NY, USA, 335–338. https://doi.org/10.1145/2578153.2578211
[7]
Teresa Busjahn, Carsten Schulte, and Andreas Busjahn. 2011. Analysis of code reading to gain more insight in program comprehension. In Proceedings of the 11th Koli Calling International Conference on Computing Education Research - Koli Calling ’11, Ari Korhonen and Robert McCartney (Eds.). ACM Press, New York, New York, USA, 1. https://doi.org/10.1145/2094131.2094133
[8]
Dave Evans. 2011. Das Internet der Dinge: So verändert die nächste Dimension des Internet die Welt. Cisco Internet Business Solutions Group (IBSG).
[9]
Andrew Ted Duchowski. 2017. Eye tracking methodology: Theory and practice (third edition ed.). Springer, Cham.
[10]
GULP Redaktion. 11.05.2010. Marktstudie: Embedded Systems – ein Wachstumsmarkt - GULP. glup.de (11.05.2010). https://www.gulp.de/knowledge-base/markt-und-trends/marktstudie-embedded-systems-ein-wachstumsmarkt.html
[11]
IEEE. 2017. 2017 22nd IEEE International Conference on Emerging Technologies and Factory Automation: September 12-15, 2017, Limassol, Cyprus. IEEE, Piscataway, NJ. http://ieeexplore.ieee.org/servlet/opac?punumber=8233358
[12]
IEEE Spectrum. 16.08.2022. Top Programming Languages 2021. https://spectrum.ieee.org/top-programming-languages/
[13]
Internationale Elektrotechnische Kommission. 2010. Functional safety of electrical/electronic/programmable electronic safety-related systems: Part 3: Software requirements = Sécurité fonctionnelle des systèmes électriques/électroniques/électroniques programmables relatifs à la sécurité : Partie 3: Exigences concernant les logiciels.
[14]
Robert Jänisch. 13.04.2020. Embedded Systems und ihre Entwicklung: Was du wissen musst. IOX GmbH (13.04.2020). https://ioxlab.de/de/iot-tech-blog/embedded-systems-und-ihre-entwicklung-was-du-wissen-musst/
[15]
MIRA Limited. 2012. MISRA C:2012: Guidelines for the use of the C language in critical systems. The MISRA Consortium Limited.
[16]
Unaizah Obaidellah, Mohammed Al Haek, and Peter C.-H. Cheng. 2019. A Survey on the Usage of Eye-Tracking in Computer Programming. ACM Computing Surveys 51, 1 (2019), 1–58. https://doi.org/10.1145/3145904
[17]
Zohreh Sharafi, Zéphyrin Soh, and Yann-Gaël Guéhéneuc. 2015. A systematic literature review on the usage of eye-tracking in software engineering. Information and Software Technology 67, 6 (2015), 79–107. https://doi.org/10.1016/j. infsof.2015.06.008
[18]
The MISRA Consortium Limited. 30.07.2022. MISRA. https://www.misra.org.uk/
[19]
Hidetake Uwano, Masahide Nakamura, Akito Monden, and Ken-ichi Matsumoto. 2006. Analyzing individual performance of source code review using reviewers’ eye movement. In Proceedings of the 2006 symposium on Eye tracking research & applications - ETRA ’06, Kari-Jouko Räihä and Andrew T. Duchowski (Eds.). ACM Press, New York, New York, USA, 133. https://doi.org/10.1145/1117309.1117357

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Other conferences
ECSEE '23: Proceedings of the 5th European Conference on Software Engineering Education
June 2023
264 pages
ISBN:9781450399562
DOI:10.1145/3593663
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 19 June 2023

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. C code
  2. MISRA C:2012
  3. code review
  4. eye tracking study
  5. program comprehension

Qualifiers

  • Research-article
  • Research
  • Refereed limited

Conference

ECSEE 2023

Acceptance Rates

Overall Acceptance Rate 11 of 16 submissions, 69%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)30
  • Downloads (Last 6 weeks)3
Reflects downloads up to 17 Jan 2025

Other Metrics

Citations

Cited By

View all

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

HTML Format

View this article in HTML Format.

HTML Format

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media