Best way to create rtl code

Jared Buttles jared@cylant.com
Fri Mar 26 02:01:00 GMT 2004


I'm looking to create and add some rtl code to the insns list, but I 
want to do it with as little intrusion as possible into the gcc source. 
Hopefully someone can tell me what the preferred way to do this might 
be, I really only see two ways:

1. Direct creation of the rtl statements added to the insns stream for 
each function
2. Creation of a small tree that represents the code I want to insert, 
use the provided functions to convert the statements therein to rtl and 
then insert them in the insns stream

Next, where is the best place to do this? I'd like to do it after 
inlining has been performed, if possible.

Are there any documents available that actually describe the how and 
why the code executes when creating rtl or is knowledge obtained mainly 
by reading the code and mailing list archives?

Jared Buttles


- Jared Buttles



More information about the Gcc mailing list