mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 00:49:22 -06:00
dex2oat supports profile-guided compilation. In addition to taking dex code as an input, it can take a profile as another input, to guide the compilation. The profile determines which methods need to be compiled, how calls can be inlined, and so on. Because Compiler Explorer doesn't support multiple input files, the profile is added as a comment block in the Java/Kotlin source code. A post-processor extracts the profile from the comment block into a separate file, in order to input it to dex2oat.
32 lines
1.3 KiB
Properties
32 lines
1.3 KiB
Properties
compilers=&android-d8:&dex2oat
|
|
|
|
group.android-d8.compilers=android-java-d8-default
|
|
# When testing locally, these paths must be valid and should
|
|
# reflect the paths in the java and kotlin default config.
|
|
group.android-d8.javaId=javacdefault
|
|
group.android-d8.javaPath=/usr/bin/java
|
|
group.android-d8.kotlinId=kotlincdefault
|
|
|
|
compiler.android-java-d8-default.name=android d8 default
|
|
compiler.android-java-d8-default.compilerType=android-d8
|
|
compiler.android-java-d8-default.objdumper=/usr/local/bin/baksmali.jar
|
|
compiler.android-java-d8-default.exe=/usr/local/bin/r8.jar
|
|
|
|
|
|
group.dex2oat.compilers=android-java-dex2oat-default
|
|
group.dex2oat.groupName=ART
|
|
compiler.android-java-dex2oat-default.name=ART dex2oat default
|
|
compiler.android-java-dex2oat-default.compilerType=dex2oat
|
|
|
|
# artArtifactDir should point to the directory extracted from the ART artifacts zip.
|
|
compiler.android-java-dex2oat-default.artArtifactDir=/usr/bin/dex2oat
|
|
compiler.android-java-dex2oat-default.exe=/usr/bin/dex2oat/x86_64/bin/dex2oat64
|
|
compiler.android-java-dex2oat-default.objdumper=/usr/bin/dex2oat/x86_64/bin/oatdump
|
|
compiler.android-java-dex2oat-default.profmanPath=/usr/bin/dex2oat/x86_64/bin/profman
|
|
|
|
# This should reflect the ID and exe for android-java-d8-default.
|
|
compiler.android-java-dex2oat-default.d8Id=android-java-d8-default
|
|
|
|
|
|
defaultCompiler=android-java-dex2oat-default
|