Make::Cache

Make::Cache is a Perl for caching of object and test run information.
Download

Make::Cache Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Wilson Snyder
  • Publisher web site:
  • http://search.cpan.org/~wsnyder/Verilog-Perl-3.035/Parser/Parser.pm

Make::Cache Tags


Make::Cache Description

Make::Cache is a Perl for caching of object and test run information. Make::Cache is a Perl for caching of object and test run information.SYNOPSIS my $oc = Make::Cache->new (...) $oc->write if (my $hit = $oc->find_hit) { $hit->restore; } $oc->dumpMake::Cache is used to accelerate the generation of makefile targets. When a target is to be created, it is looked up in the cache. On a miss, the hash of the source files, and all the generated targets are stored.Next time the target is needed, the cache will hit, and the target files may be retrieved from the cache instead of being regenerated.The Make::Cache class is generally used as a base class for more specific classes.LOCAL TO GLOBALMake::Cache converts local filenames to global filenames. This gets around the problem of compile lines similar to gcc /user/a/home_dir/foo.cresulting in cache misses, because someone else compiled the exact same source in a different directory gcc /user/b/home_dir/foo.cTo avoid this, all filenames are converted to global format, by using a file_env list passed in the new constructor. By default, this converts the current working directory (cwd) to $CWD. Using the examples above, the gcc command line would be hashed as if the user typed: gcc $$CWD$$/foo.cWhich is identical for both users, and thus will result in cache hits. Requirements: · Perl


Make::Cache Related Software