Pathological Register Allocation Scenarios

2004-08-27 Thread Gregor N. Purdy
Dan -- I think it would be interesting to find out how, say, gcc behaves on the pathological code structures you've run into. Could your compiler spit out a structurally (although not semantically! :) equivalent piece of C code that could be used with a C compiler to see how we do vs. C compilers i

Re: Pathological Register Allocation Scenarios

2004-08-30 Thread Gregor N. Purdy
Dan -- Something like this for the .imc generation? Regards, -- Gregor --- snip: gen-imc.pl -- #!/usr/bin/perl -w use strict; die "Usage: $0 \n" unless @ARGV == 2; my ($total_labels, $total_locals) = @ARGV; my $labels_so_far = 0; my $locals_so_far = 0;