User Tools

Site Tools


spo600:creating_a_gcc_pass

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
spo600:creating_a_gcc_pass [2025/02/18 12:32] – created chrisspo600:creating_a_gcc_pass [2025/02/18 15:01] (current) – [Creating a GCC Pass] chris
Line 1: Line 1:
 ====== Creating a GCC Pass ====== ====== Creating a GCC Pass ======
 +
 +**These are rough notes only!** Unfortunately, this part of the GCC codebase is poorly documented at this point in time.
  
 ===== Structure of a Pass ===== ===== Structure of a Pass =====
Line 62: Line 64:
  
  
 +===== Dump Files =====
 +
 +  * Dump files are created for all passes where the name in the ''pass_data'' structure does not start with an astrisk (*).
 +  * The dump file will, by default, contain a dump of the IR at the end of your pass.
 +  * You may add additional text into the file by accessing the ''dump_file'' file descriptor like this:
 +
 +<code>
 +  if (dump_file)
 +    {
 +      fprintf (dump_file, ... );
 +    }</code>
 +
 +===== Resources =====
 +
 +This section will be extended -- watch for changes.
 +
 +==== On this Wiki ====
 +  * [[Building GCC]]
 +
 +==== On the Web ====
 +  * [[https://gcc.gnu.org/onlinedocs/gccint/|GCC Internals Manual]]
  
spo600/creating_a_gcc_pass.1739881920.txt.gz · Last modified: 2025/02/18 12:32 by chris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki