Movatterモバイル変換


[0]ホーム

URL:


Previous:, Up:RTL Representation   [Contents][Index]


13.23 Reading RTL

To read an RTL object from a file, callread_rtx. It takes oneargument, a stdio stream, and returns a single RTL object. This routineis defined inread-rtl.cc. It is not available in the compileritself, only the various programs that generate the compiler back endfrom the machine description.

People frequently have the idea of using RTL stored as text in a file asan interface between a language front end and the bulk of GCC. Thisidea is not feasible.

GCC was designed to use RTL internally only. Correct RTL for a givenprogram is very dependent on the particular target machine. And the RTLdoes not contain all the information about the program.

The proper way to interface GCC to a new language front end is withthe “tree” data structure, described in the filestree.h andtree.def. The documentation for this structure (seeGENERIC)is incomplete.


[8]ページ先頭

©2009-2026 Movatter.jp