OpenCores
URL https://opencores.org/ocsvn/test_project/test_project/trunk

Subversion Repositories test_project

[/] [test_project/] [trunk/] [linux_sd_driver/] [scripts/] [profile2linkerlist.pl] - Blame information for rev 65

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 62 marcus.erl
#!/usr/bin/perl
2
 
3
#
4
# Takes a (sorted) output of readprofile and turns it into a list suitable for
5
# linker scripts
6
#
7
# usage:
8
#        readprofile | sort -rn | perl profile2linkerlist.pl > functionlist
9
#
10
 
11
while (<>) {
12
  my $line = $_;
13
 
14
  $_ =~ /\W*[0-9]+\W*([a-zA-Z\_0-9]+)\W*[0-9]+/;
15
 
16
  if ( ($line =~ /unknown/) || ($line =~ /total/)) {
17
 
18
  } else {
19
    print "*(.text.$1)\n";
20
  }
21
}

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.