LLVM Intermediate Code?

Answered

Comments

3 comments

  • Official comment
    Avatar
    Dana Roth

    Jeevan,

    Your syntax is wrong. Here's a simple example that should help you:

    <ZING_HOME>/bin/java -XX:FalconDumpIRToDiskOf=* HelloWorld

    You don't have to use -XX:FalconIRDumpRoot because it defaults to ./falcon-ir, but you do need XX:FalconDumpIRToDiskOf and you need a class or a jar too of course.

    Here's the documentation: https://docs.azul.com/zing/UseZVM_FalconCompiler.htm

    Regards,

    Dana

    Comment actions Permalink
  • Avatar
    Holger Isenberg

    John, yes that possible by adding the following options to the java command line:

    -XX:FalconIRDumpRoot=<path> – sets the directory in which to dump IR. If not set, defaults to ./falcon-ir.
    -XX:FalconDumpIRToDiskOf=* – tells the Falcon compiler to dump its internal IR for compiles which match the specified pattern to disk. This IR can be provided to Azul Support to assist in analyzing performance issues. Enabling this option may affect the performance of the application. This option should not be used outside of a test environment.

    Copied from the Zing documentation: http://docs.azul.com/zing/index.htm#UseZVM_FalconCompiler.htm

    The 'internal IR' is the intermediate LLVM code.

    To limit the output for specific methods or packages, here an example:
    -XX:FalconDumpIRToDiskOf='java.io.*'

    You might consider to combine it with one of the options to lower the threshold for the JIT's tier 2 compilation, as only the tier 2 (Falcon) compiled code will be printed.

    -XX:FalconCompileThreshold=N   -   Adjust the threshold of method invocations until it is compiled in tier 2. Default: 10000

    -Xcomp   -   Only for test/dev systems! Compiles everything into tier 2.

     

    I guess, that should answer your question. 

    For some more details about Falcon, Zing's tier 2 compiler, take a look at https://www.azul.com/press_release/falcon-jit-compiler/ .

    Best regards,

    Holger

    0
    Comment actions Permalink
  • Avatar
    Jeevan Kamkar

    Hello  ,

    I am Currently using the Trail version of Zing

    I am trying to set the path   for IR Dump   (FalconIRDumpRoot) but it is not happening

    Please find the supporting log for the same

    $JAVA_HOME/bin/java -XX:FalconIRDumpRoot=/home/root1/Work/ir
    Usage: java [-options] class [args...]
               (to execute a class)
       or  java [-options] -jar jarfile [args...]
               (to execute a jar file)
    where options include:
        -d32      use a 32-bit data model if available
        -d64      use a 64-bit data model if available
        -server      to select the "server" VM
                      The default VM is server,
                      because you are running on a server-class machine.


        -cp <class search path of directories and zip/jar files>
        -classpath <class search path of directories and zip/jar files>
                      A : separated list of directories, JAR archives,
                      and ZIP archives to search for class files.
        -D<name>=<value>
                      set a system property
        -verbose:[class|gc|jni]
                      enable verbose output
        -version      print product version and exit
        -version:<value>
                      Warning: this feature is deprecated and will be removed
                      in a future release.
                      require the specified version to run
        -showversion  print product version and continue
        -jre-restrict-search | -no-jre-restrict-search
                      Warning: this feature is deprecated and will be removed
                      in a future release.
                      include/exclude user private JREs in the version search
        -? -help      print this help message
        -X            print help on non-standard options
        -ea[:<packagename>...|:<classname>]
        -enableassertions[:<packagename>...|:<classname>]
                      enable assertions with specified granularity
        -da[:<packagename>...|:<classname>]
        -disableassertions[:<packagename>...|:<classname>]
                      disable assertions with specified granularity
        -esa | -enablesystemassertions
                      enable system assertions
        -dsa | -disablesystemassertions
                      disable system assertions
        -agentlib:<libname>[=<options>]
                      load native agent library <libname>, e.g. -agentlib:hprof
                      see also, -agentlib:jdwp=help and -agentlib:hprof=help
        -agentpath:<pathname>[=<options>]
                      load native agent library by full pathname
        -javaagent:<jarpath>[=<options>]
                      load Java programming language agent, see java.lang.instrument
        -splash:<imagepath>
                      show splash screen with specified image
    See http://docs.azul.com/zing/index.htm for more details.

    please suggest 

    Regards

    Jeevan

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk