본문 바로가기
  • Home

A Study on the Effective Task Branching Method of C-Language for Embedded Software Configuration

  • Journal of Software Assessment and Valuation
  • Abbr : JSAV
  • 2023, 19(1), pp.61-68
  • DOI : 10.29056/jsav.2023.3.08
  • Publisher : Korea Software Assessment and Valuation Society
  • Research Area : Engineering > Computer Science
  • Received : March 8, 2023
  • Accepted : March 20, 2023
  • Published : March 31, 2023

Myeong-Hoon Kang 1 Lee HyunChang 2

1연암대학교 통합전산센터장
2공주대학교

Accredited

ABSTRACT

In this paper, an effective branching method of C-language used in embedded systems was presented. For this purpose, a theoretical analysis of branching by simple if statement, branching by if statement of tree structure, branching by switch statement, branching by function pointer array, and function pointer branching by look-up table was conducted. As a result of the analysis, it was confirmed that the if statement is most advantageous for 2 or 3 branches, but the if statement in the tree structure is advantageous for branches within about 32 branches, and the function pointer array is advantageous for more than that. In particular, in the case of one-chip microcontrollers with very small volatile memory, function pointer branching by look-up table was most effective. In order to confirm these analysis results, an experiment was conducted on a microcontroller, and results almost similar to the theoretical expectations were confirmed.

Citation status

* References for papers published after 2022 are currently being built.