Constructed product result analysis

In the field of compiler implementation in computer science, constructed product result analysis (or CPR analysis) is a static analysis that determines which functions in a given program can return multiple results in an efficient manner. Typically, this means returning multiple results in a register (as opposed to returning a pointer to an tuple allocated on the heap whose components are the function's multiple return values.)

CPR analysis was introduced in the context of compiling Haskell (a lazy functional language) and is implemented in the Glasgow Haskell Compiler. It may be applicable to other programming languages as well.[1]

See also

References

  1. Baker-Finch, Clem; Kevin Glynn; Simon Peyton Jones (March 2004). "Constructed Product Result Analysis for Haskell". Journal of Functional Programming. 14 (2): 211–245. doi:10.1017/S0956796803004751. Retrieved 2007-10-28.
This article is issued from Wikipedia - version of the 7/8/2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.