<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 25, 2019 at 4: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 26/2/19 9:07 am, Joel Sherrill wrote:<br>
> On Mon, Feb 25, 2019 at 3:31 PM Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a><br>
> <mailto:<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>>> wrote:<br>
> <br>
>     On 26/2/19 4:52 am, Joel Sherrill wrote:<br>
>     > To follow up, I built lm4f120 with OPERATION_COUNT=10 and the failure set<br>
>     > dropped to these:<br>
>     ><br>
>     > gmake[5]: *** [capture.exe] Error 1<br>
>     > gmake[5]: *** [loopback.exe] Error 1<br>
>     > gmake[5]: *** [block08.exe] Error 1<br>
>     > gmake[5]: *** [top.exe] Error 1<br>
>     > gmake[5]: *** [sp47.exe] Error 1<br>
>     > gmake[5]: *** [sp71.exe] Error 1<br>
>     > gmake[5]: *** [sptimecounter02.exe] Error 1<br>
>     > gmake[5]: *** [sptimecounter03.exe] Error 1<br>
>     > gmake[5]: *** [psxconfig01.exe] Error 1<br>
>     > gmake[5]: *** [tm21.exe] Error 1<br>
>     > gmake[5]: *** [tmcontext01.exe] Error 1<br>
>     ><br>
> <br>
>     This looks better. What does the `OPERATION_COUNT` do to effect the link size?<br>
> <br>
> <br>
> It used to do nothing to impact the link size. :) <br>
> <br>
> <br>
>     I am wondering how a change to a statically initialised workspace Sebastian<br>
>     raised and the OPERATION_COUNT interact.<br>
> <br>
> <br>
> OPERATION_COUNT is usually the number of objects (e.g. tasks, semaphores, <br>
> etc) created so it is the maximum object count. For example, tm03 has this:<br>
> <br>
> <a href="https://git.rtems.org/rtems/tree/testsuites/tmtests/tm03/system.h#n29" rel="noreferrer" target="_blank">https://git.rtems.org/rtems/tree/testsuites/tmtests/tm03/system.h#n29</a><br>
> <br>
> |#define CONFIGURE_MAXIMUM_TASKS (3 + OPERATION_COUNT) |<br>
> <br>
> <br>
> So when Sebastian changed this,  it went from a run-time to a link time failure.<br>
> <br>
<br>
Ah ok, it is nice to see the error on these targets at link time.<br>
<br>
> The intent of OPERATION_COUNT was to be able to scale the timing tests down<br>
> to the hardware platform. Dropping OPERATION_COUNT to 10 for these BSPs<br>
> will resolve almost all of the tm and psxtm linking issues from what I can tell.<br>
<br>
What about a way to set this value in the `.tcfg` files and then provide it on<br>
the command line as a compile option?<br></blockquote><div><br></div><div>This would be awesome! OPERATION_COUNT is an area where our old</div><div>build system person didn't want to tread. Much like the entire tcfg system.</div><div><br></div><div>--joel </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>
</blockquote></div></div>