<div dir="ltr"><div><div><div><div>Hello Tim,<br><br></div>In the writeNopData, I changed the return value to true, and now everything is fine!<br></div>Thanks a lot for your help.<br><br></div>Cheers,<br></div>ES<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 15, 2015 at 6:14 PM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 15 October 2015 at 04:38, Sky Flyer <<a href="mailto:skylake007@googlemail.com">skylake007@googlemail.com</a>> wrote:<br>
> I am getting an error which says: "LLVM ERROR: unable to write nop sequence<br>
> of 0 bytes"<br>
<br>
</span>Sounds like you need to implement "writeNopData" from the AsmBackend.<br>
<span class=""><br>
> Is there any way that I can print out the Obj code (I mean bitstream<br>
> representation of the assembly code which is going to be placed in the ELF<br>
> file), before making any ELF file?<br>
<br>
</span>I think it's only really produced on demand while writing the ELF<br>
file. You might look at the output of "llc -debug", which shows some<br>
of the intermediate data structures, none of them are really just the<br>
instruction bits.<br>
<br>
Cheers.<br>
<span class="HOEnZb"><font color="#888888"><br>
Tim.<br>
</font></span></blockquote></div><br></div>