<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 06/30/2015 07:57 PM, Sean Silva
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAHnXoa=hRpBT2+b2kMEWXeR-r8_xtpkVwk3w57dq-_xuiCC62Q@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <div>Could you maybe explain a bit more about BRIG and the
              barriers to using MC for it?</div>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    The main problem is it isn't streamable. Everything is split into
    multiple sections in the binary. For example, instructions have
    their operands placed in a different section and the instruction
    encoding includes the offset into the other section. libHSAIL needs
    to construct the full output for the module in memory and then emit
    code at the end, which is not how MC expects binary formats to work.
    This particular problem we've thought might be fixable with lots of
    custom fixups.<br>
    There are also issues with debug info. One of the problems is that
    the text format currently doesn't have a way of representing DWARF,
    and BRIG has its own special handling of DWARF in a separate section
    as well. Binary formats and MC aren't areas I'm particularly
    familiar with.<br>
    <br>
    -Matt<br>
  </body>
</html>