GNU 컴파일러를 이용한 ES-C2340 DSP2용 C 교차 컴파일러의 개발

The Implementation of C Cross-Compiler for ES-C2340 DSP2 by Using the GNU Compiler

  • 이시영 (경북대학교 컴퓨터 공학과) ;
  • 권육춘 (경북대학교 컴퓨터 공학과) ;
  • 유하영 (한국전자통신연구소) ;
  • 한기천 (한국전자통신연구소) ;
  • 김승호 (경북대학교 컴퓨터 공학과)
  • Lee, Si-Yeong (Dept.of Computer Engineering, Kyungpook National University) ;
  • Gwon, Yuk-Chun (Dept.of Computer Engineering, Kyungpook National University) ;
  • Yu, Ha-Yeong (Electronics And Telecommunications Research Institute) ;
  • Han, Gi-Cheon (Electronics And Telecommunications Research Institute) ;
  • Kim, Seung-Ho (Dept.of Computer Engineering, Kyungpook National University)
  • 발행 : 1997.01.01

초록

본 논문에서는 GNU 컴파일러를 이용하여 ES-C2340 DSP2 프로세서를 위한 C 교차 컴파일러를 개발한다. 신속하고 효율적인 컴파일러의 개발을 위해 언어 의존적인 프 론트 앤드(front-end)의 일부는 GNU 컴파일러를 사용하고, 프로세서 의존적인 백 앤 드(back-end)부분은 새로이 작성하여 결합하는 접근 방법을 사용한다. 이러한 접근 방법은 첫째, 프론트 앤드 부분에서 잘 검증된 GNU 컴파일러의 뛰어난 최적화 기법과 다중 언어 지원성을 사용하므로 컴파일러의 효율성과 범용성이 보장되고, 둘째, 하드 웨어 의존적인 부분의 구현에만 집중함으로써 개발 기간이 단축되며, 셋째 개발 시간 의 단축으로 인해 프로세서의 개발시에 논리 검증 도구로 고급 언어를 사용할 수 있 게 한다. 그리고 본 논문에서는 교차 컴파일러를 지원하기 위하여 텍스트 수준의 선 링커(pre-linker)도 구현한다.

In this paper, we describe the implementation of C cross-compiler for the ES-C2340 DSP2 processor by using the GNU compiler. For the rapid and efficient developing of the compiler and other parts like the processor-dependent back -end which is implemented newly to build the compiler. This approach has several advantages. First, as we use GNU compiler's well-proved excellent optimization method and multi-language support capability, we can improve he efficiency and generality of the compiler. Second, as we concentrate on the high-level language as logic approving tool in processor developing process. And to support the cross-compiler, we also implement a text-level pre-linker.

키워드