2012 | OriginalPaper | Buchkapitel
Research and Development of Compiler Based on GCC
verfasst von : Wang Xiaowei, Wang Kuixing, Yang Quansheng
Erschienen in: Recent Advances in Computer Science and Information Engineering
Verlag: Springer Berlin Heidelberg
Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.
Wählen Sie Textabschnitte aus um mit Künstlicher Intelligenz passenden Patente zu finden. powered by
Markieren Sie Textabschnitte, um KI-gestützt weitere passende Inhalte zu finden. powered by
Open-source GCC compiler has the advantage of high-level optimization ability and portability. Aiming at specific target platform, this paper carried out practical research and development of compiler based on GCC. Through analysis and research, this paper presented a thought: taking the analysis of RTL code as main direction to study RTL generation mechanisms and RTL code matching principles, which helps to understand the overall architecture of GCC and retargeting mechanisms of GCC. Through GCC porting practice, methods to modify the machine description for some typical instructions were presented. In the end, the generated compiler was tested by a basic C program to verify its correctness. This paper has guiding significance and reference value for understanding of compilers, GCC research, porting and optimization.