ProGuard

ProGuard is an open source command-line tool that shrinks, optimizes and obfuscates Java code. It is able to optimize bytecode as well as detect and remove unused instructions.[4] ProGuard is free software and is distributed under the GNU General Public License, version 2.[3]

ProGuard
Developer(s)Eric P.F. Lafortune[1]
Stable release
7.3.2[2] Edit this on Wikidata / 17 March 2023 (17 March 2023)
Repository
Written inJava
Operating systemCross-platform
LicenseGPLv2.0[3]
Websitewww.guardsquare.com/en/products/proguard

ProGuard was distributed as part of the Android SDK and ran when building the application in release mode.[5]

Features

Obfuscation

ProGuard obfuscates Java and Android programs by renaming classes, fields, and methods using meaningless names, making it harder to reverse-engineer the final application.[6]

Optimization

Besides removing unused instructions from the compiled bytecode, ProGuard optimizes it using techniques such as control flow analysis, data-flow analysis, partial evaluation, static single assignment, global value numbering, and liveness analysis.[6]

ProGuard can remove many types of unused and duplicated code, perform over 200 peephole optimizations, reduce variable allocation, inline constant and short methods, simplify tail recursion calls, remove logging code, among others.[6]

See also

References

  1. "Eric Lafortune home page". Retrieved November 24, 2015.
  2. "Release 7.3.2". March 17, 2023. Retrieved March 26, 2023.
  3. "ProGuard license page". February 2, 2015. Retrieved November 24, 2015.
  4. "ProGuard overview (official page)". February 2, 2015. Retrieved November 24, 2015.
  5. "Shrink your code and resources". Retrieved June 10, 2018.
  6. "ProGuard FAQ". February 2, 2015. Archived from the original on October 28, 2016. Retrieved November 24, 2015.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.