This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Extracting live registers
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Paulo Matos <pmatos@linki.tools>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 6 Nov 2018 17:40:02 -0600
- Subject: Re: Extracting live registers
- References: <92eede92-8945-acb9-0230-63c9a928188d@linki.tools>
Hi Paulo,
On Tue, Nov 06, 2018 at 09:35:35PM +0100, Paulo Matos wrote:
> I remember from awhile ago that there's some option (or there was...)
> that gets GCC to print some register allocation information together
> with the assembler output.
>
> I am interested in obtaining the live registers per basic block. I think
> the option I had in mind did that but I can't remember the option name
> anymore. Can someone point me out to the option or a way to extract such
> information?
-fdump-rtl-alignments[-all] is the last dump with all that information I
think. This one also has all this info without -all it seems. With -all
it shows it interleaving the RTL dump as well, which may or may not be
handy for you.
Segher