Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
451 B

  1. foreach $cmd (@ARGV) {
  2. $build = 1 if $cmd eq "-build";
  3. }
  4. @ENV{'user_c_flags'} = "/FAs";
  5. @hoob = `build -cZ` if $build;
  6. @flist = `for /f %f in ('dir /s /b *.asm') do findstr /srpn "sub.*esp" %f`;
  7. foreach $_ (@flist) {
  8. chomp;
  9. push @tags, [ /(.*):(.*):\s*sub\s*esp,\s*(\d*)/ ];
  10. }
  11. @tags = sort { (@$b)[2] <=> (@$a)[2] } @tags;
  12. foreach $ham (@tags) {
  13. ($file, $line, $size) = @$ham;
  14. print "$file($line): $size bytes\n" if $size;
  15. }