Changes between Version 22 and Version 23 of ClrxDisasm


Ignore:
Timestamp:
09/21/18 16:01:12 (6 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ClrxDisasm

    v22 v23  
    1010structure of the binaries (kernels and their configuration). Output of that program
    1111can be used as input to the CLRX assembler if option '--all' will be used.</p>
     12<p>A disassembler can detect automatically binary format, bitness of the binary.</p>
    1213<h3>Invoking a disassembler</h3>
    1314<p>The <code>clrxdisasm</code> can be invoked in following way:</p>
     
    122123standard error output. <code>clrxdisasm</code> returns 0 if succeeded, otherwise it returns 1
    123124and prints the error messages to stderr</p>
    124 <h3>Sample usage</h3>
    125 <p>Below is sample usage of the <code>clrxdisasm</code>:</p>
    126 <p><code>clrxdisasm -a DCT.amd.0</code></p>
     125<h3>Sample usages</h3>
     126<p>Following sample usages:</p>
     127<ul>
     128<li>
     129<p><code>clrxdisasm -aC source.clo</code></p>
     130<p>Disassemble binary file source.clo. Print addresess, opcodes, metadata in human readable form.</p>
     131</li>
     132<li>
     133<p><code>clrxdisasm -a source.clo</code></p>
     134<p>Disassemble binary file source.clo. Print addresess, opcodes, metadata in machine readable form
     135(enough rarely used).</p>
     136</li>
     137<li>
     138<p><code>clrxdisasm -aC -t240400 source.clo</code></p>
     139<p>Disassemble binary file source.clo including AMD driver version 240400.
     140Print addresess, opcodes, metadata in human readable form.</p>
     141</li>
     142<li>
     143<p><code>clrxdisasm -aCHL -t240400 source.clo</code></p>
     144<p>Disassemble binary file AMD OpenCL 2.0 source.clo including AMD driver version 240400 in
     145new HSA layout form (like ROCm).
     146Print addresess, opcodes, metadata in human readable HSA config form.</p>
     147</li>
     148<li>
     149<p><code>clrxdisasm -aC -gBonaire source.clo</code></p>
     150<p>Disassemble binary file source.clo for Bonaire GPU device. It can be used while
     151disassemblying GalliumCompute binaries. Print addresess, opcodes, metadata in human readable form.</p>
     152</li>
     153<li>
     154<p><code>clrxdisasm -aC -t170000 --llvmVersion=40000 -gBonaire source.clo</code></p>
     155<p>Disassemble new GalliumCompute (for new MesaOpenCL 17.0.0 or later and LLVM 4.0.0 or later)
     156binary file source.clo for Bonaire GPU device.
     157Print addresess, opcodes, metadata in human readable form.</p>
     158</li>
     159</ul>
    127160}}}