Make::Cache::Obj

Make::Cache::Obj is a Perl module for caching of objects and test run information.
Download

Make::Cache::Obj 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::Obj Tags


Make::Cache::Obj Description

Make::Cache::Obj is a Perl module for caching of objects and test run information. Make::Cache::Obj is a Perl module for caching of objects and test run information.SYNOPSISmy $oc = Make::Cache::Obj->new (...); $oc->parse_cmds; $oc->tgts_unlink; $oc->preproc; my $ochit = $oc->find_hit; if ($ochit) { $ochit->restore; } else { # Run command passed $oc->execute; $oc->encache; }Make::Cache::Obj is a superclass of Make::Cache. It provides support for executing a list of commands if the cache misses, and for determining the runtime of the commands that will execute.Objects that represent specific compilers use this as a base class.FUNCTIONScc_running_lock ()Set a non-reliable semaphore to indicate a compile is running.cc_running_unlock ()Clear a non-reliable semaphore to indicate a compile is running.is_cc_running_read ()Return true if a compile is running on any machine.compile_cmdsReturn list of commands to run in the execute() phase.encacheTake the compile results and put them into the cache.executeRun the compiler, perhaps on a remote machine.ok_include_regexpsSet the list of regexp references that are acceptable global includes.hostReturn the name of a remote host to run the compilation on, or 0 for the local host. If the compile time is less then the min_remote_runtime variable, the compile will always be done locally. Else, the host is chosen randomly from elements in the remote_hosts list.included_file_checkPrevent users from including global files that are not the same on all machines, by warning about any includes with directories specified. Directories that are OK should be included in the list returned by ok_include_regexps.parse_cmdsParses the local commands to extract target filenames and compiler switches.preprocExecutes a compiler run to create a temporary file containing all source to be hashed.preproc_cmdsReturn list of commands to run in the preproc() phase.temp_filenameReturn the name of a temporary file. With argument, set the name of a temporary file to be deleted in a END block or on errors.run (params...)Execute a system command with the specified commands, timing how long it takes and detecting errors.run_stdout (filename, params...)Run() with redirection of stdout to the first argument.runtimeReturn a runtime object for the given targets.runtime_writeWrite the runtime object to persistent storage. Called on completion of a compile. Requirements: · Perl


Make::Cache::Obj Related Software