登录 注册
当前位置:主页 > 资源下载 > 31 > 【Android4.4.4.4_r1系统源码】OptMain.cpp下载

【Android4.4.4.4_r1系统源码】OptMain.cpp下载

  • 更新:2024-10-27 12:48:20
  • 大小:18KB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:Android - 移动开发
  • 格式:CPP

资源介绍

17/* 18 * Command-line DEX optimization and verification entry point. 19 * 20 * There are three ways to launch this: 21 * (1) From the VM. This takes a dozen args, one of which is a file 22 * descriptor that acts as both input and output. This allows us to 23 * remain ignorant of where the DEX data originally came from. 24 * (2) From installd or another native application. Pass in a file 25 * descriptor for a zip file, a file descriptor for the output, and 26 * a filename for debug messages. Many assumptions are made about 27 * what's going on (verification + optimization are enabled, boot 28 * class path is in BOOTCLASSPATH, etc). 29 * (3) On the host during a build for preoptimization. This behaves 30 * almost the same as (2), except it takes file names instead of 31 * file descriptors. 32 * 33 * There are some fragile aspects around bootclasspath entries, owing 34 * largely to the VM's history of working on whenever it thought it needed 35 * instead of strictly doing what it was told. If optimizing bootclasspath 36 * entries, always do them in the order in which they appear in the path. 37 */