<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 15, 2021 at 5:58 PM Chris Johns <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 16/3/21 9:11 am, Gedare Bloom wrote:<br>
> On Mon, Mar 15, 2021 at 3:34 PM Alex White <<a href="mailto:alex.white@oarcorp.com" target="_blank">alex.white@oarcorp.com</a><br>
> <mailto:<a href="mailto:alex.white@oarcorp.com" target="_blank">alex.white@oarcorp.com</a>>> wrote:<br>
> <br>
>     I honestly can't remember why I changed 1024 to 20,000.<br>
> <br>
>     I've looked back at that code and changed it back to 1024 without any<br>
>     issues. I think I might have missed that this is all happening in a loop,<br>
>     and at one point during a (long) debugging session I convinced myself that<br>
>     it wasn't reading all of the entries.<br>
> <br>
>     At least that's the most rational explanation I can think up for that<br>
>     particular change. 😊<br>
> <br>
>     If I revert ENTRIES from 20000 back to 1024, are we satisfied to leave the<br>
>     "entries" array as-is?<br>
> <br>
> I think that Chris' main points here are that, as you get covoar working again<br>
> and cleaning it up, it should be made more C++ (and less C).<br>
<br>
Thanks Gedare, yes I am asking if this could be considered. A total conversion<br>
is not realistic and would be asking too much but my hope is making changes in<br>
small pieces can be done. Some changes will requiring new C++ skills but that<br>
should be thought of as a fun challenge.<br>
<br>
In this case I think changing to a vector would be a good thing for 1024 entries<br>
but we had 1024 in the code previously and it was fine so I am also OK if it<br>
left that way.<br></blockquote><div><br></div><div><div><br></div><div>This is a different case than many of the others, it is reading a block of fixed size</div><div>binary entries from the Qemu trace log. It is just avoiding reading the 32-byte <br></div><div>entries one at a time. It is read, process, and discard. How would <br></div><div>std::ANYTHING help here?</div><div><br></div><div>--joel<br></div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Chris<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>