Development of a Model-Driven Approach Based API Translator for Embedded Software

모델 기반 접근 방법을 이용한 임베디드 S/W를 위한 API 변환기의 개발

  • 박병률 (국민대학교 전자공학부) ;
  • 맹지찬 (한양대학교 전자통신컴퓨터공학부) ;
  • 이종범 (국민대학교 전자공학부) ;
  • 유민수 (한양대학교 전자통신컴퓨터공학부) ;
  • 안현식 (국민대학교 전자공학부) ;
  • 정구민 (국민대학교 전자공학부)
  • Published : 2007.10.30

Abstract

In this paper, we present an automated API translator for embedded software development based on a model-driven approach. Since MDA(Model Driven Architecture) provides little support for the development of embedded software, we propose a new method which contains the MDA's advantage, automation of implement process, and can solve the problem of real-time overhead. First, we define 'generic APIs' which do not depend on any RTOS's but provide most of typical RTOS services. We can describe RTOS-related behaviors of target application using these generic APIs in a CIC(Common Intermediate Code). Then, we propose a transformation tool for translating a CIC using generic APIs into a C-code for specific RTOS. The proposed API translator converts them into C-code using XML transformation rule which is defined outside. It indicates that an API translator extends to other RTOS's by modifying or adding the transformation rule. From the experiment, we validate the proposed method.

본 논문에서는 모델 기반 접근 방법을 이용하여 임베디드 소프트웨어를 개발하기 위한 자동화된 API 변환기에 대하여 기술한다. MDA(Model Driven Architecture)가 임베디드 소프트웨어의 개발에 관해서는 지원이 매우 미약하기 때문에, 우리는 MDA의 장점인 구현 공정의 자동화를 포함하면서도 실시간 오버헤드 문제를 해결할 수 있는 새로운 접근 방법을 제시한다. 첫 번째로, 어느 특정 RTOS에 의존하지 않지만 전형적인 RTOS 서비스들의 대부분을 제공할 수 있도록 Generic API를 정의한다. 우리는 이 Generic API를 이용하여 타겟 응용프로그램의 RTOS와 관련된 행동을 CIC(Common Intermediate Code)에서 표현할 수 있다. 그 다음에, Generic API를 이용하여 기술된 CIC를 특정 RTOS에서 수행할 수 있는 C-코드로 변환할 수 있는 변환 툴을 제안한다. 제안된 API 변환기는 외부에 정의되어 있는 XML 변환 규칙을 이용하여 코드를 변환한다. 따라서 API 변환기는 이 변환 규칙을 수정하거나 추가하여 다른 RTOS로 적용할 수 있도록 확장이 가능하다. 실험을 통하여 제안된 방법을 확인한다.

Keywords