Mercurial > hg > truffle
comparison src/share/tools/hsdis/README @ 18041:52b4284cb496
Merge with jdk8u20-b26
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Wed, 15 Oct 2014 16:02:50 +0200 |
parents | 4ca6dc0799b6 |
children |
comparison
equal
deleted
inserted
replaced
17606:45d7b2c7029d | 18041:52b4284cb496 |
---|---|
1 Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. | 1 Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. |
2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 2 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 | 3 |
4 This code is free software; you can redistribute it and/or modify it | 4 This code is free software; you can redistribute it and/or modify it |
5 under the terms of the GNU General Public License version 2 only, as | 5 under the terms of the GNU General Public License version 2 only, as |
6 published by the Free Software Foundation. | 6 published by the Free Software Foundation. |
52 "make both" will build them both at once. "make all64" will | 52 "make both" will build them both at once. "make all64" will |
53 explicitly build the 64 bit version. By default this will build the | 53 explicitly build the 64 bit version. By default this will build the |
54 disassembler library only. If you build demo it will build a demo | 54 disassembler library only. If you build demo it will build a demo |
55 program that attempts to exercise the library. | 55 program that attempts to exercise the library. |
56 | 56 |
57 With recent version of binutils (i.e. binutils-2.23.2) you may get the | |
58 following build error: | |
59 | |
60 WARNING: `makeinfo' is missing on your system. You should only need it if | |
61 you modified a `.texi' or `.texinfo' file, or any other file | |
62 ... | |
63 | |
64 This is because of "Bug 15345 - binutils-2.23.2 tarball doesn't build | |
65 without makeinfo" [2]. The easiest way to work around this problem is | |
66 by doing a "touch $BINUTILS/bfd/doc/bfd.info". | |
67 | |
57 Windows | 68 Windows |
58 | 69 |
59 In theory this should be buildable on Windows but getting a working | 70 In theory this should be buildable on Windows but getting a working |
60 GNU build environment on Windows has proven difficult. MINGW should | 71 GNU build environment on Windows has proven difficult. MINGW should |
61 be able to do it but at the time of this writing I was unable to get | 72 be able to do it but at the time of this writing I was unable to get |
99 dargs=$dargs' -XX:PrintAssemblyOptions=hsdis-print-bytes' | 110 dargs=$dargs' -XX:PrintAssemblyOptions=hsdis-print-bytes' |
100 java $dargs -Xbatch CompileCommand=print,*String.hashCode HelloWorld | 111 java $dargs -Xbatch CompileCommand=print,*String.hashCode HelloWorld |
101 | 112 |
102 If the product mode of the JVM does not accept -XX:+PrintAssembly, | 113 If the product mode of the JVM does not accept -XX:+PrintAssembly, |
103 you do not have a version new enough to use the hsdis plugin. | 114 you do not have a version new enough to use the hsdis plugin. |
115 | |
116 * Wiki | |
117 | |
118 More information can be found in the OpenJDK HotSpot Wiki [1]. | |
119 | |
120 | |
121 Resources: | |
122 | |
123 [1] https://wiki.openjdk.java.net/display/HotSpot/PrintAssembly | |
124 [2] http://sourceware.org/bugzilla/show_bug.cgi?id=15345 |