comparison src/share/tools/hsdis/README @ 14909:4ca6dc0799b6

Backout jdk9 merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 01 Apr 2014 13:57:07 +0200
parents d8041d695d19
children 52b4284cb496
comparison
equal deleted inserted replaced
14908:8db6e76cb658 14909:4ca6dc0799b6
1 Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. 1 Copyright (c) 2008, 2012, 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
68 Windows 57 Windows
69 58
70 In theory this should be buildable on Windows but getting a working 59 In theory this should be buildable on Windows but getting a working
71 GNU build environment on Windows has proven difficult. MINGW should 60 GNU build environment on Windows has proven difficult. MINGW should
72 be able to do it but at the time of this writing I was unable to get 61 be able to do it but at the time of this writing I was unable to get
110 dargs=$dargs' -XX:PrintAssemblyOptions=hsdis-print-bytes' 99 dargs=$dargs' -XX:PrintAssemblyOptions=hsdis-print-bytes'
111 java $dargs -Xbatch CompileCommand=print,*String.hashCode HelloWorld 100 java $dargs -Xbatch CompileCommand=print,*String.hashCode HelloWorld
112 101
113 If the product mode of the JVM does not accept -XX:+PrintAssembly, 102 If the product mode of the JVM does not accept -XX:+PrintAssembly,
114 you do not have a version new enough to use the hsdis plugin. 103 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