AnsweredAssumed Answered

SPC5 studio project problems when compiling with -Os

Question asked by vierman.gert on Feb 9, 2017
Latest reply on May 4, 2017 by Erwan Y

When compiling a SPC5 studio generated demo program with -Os to optimize on size, the resulting code stalls during initialisation. in eirqInit() the loop

 

  while (eirqconf[i].eirqNumber != -1) {

 

never terminates when the eirqconf[] table has no entries except for the terminator record where irq is set to -1

 

  const eirq_config eirqconf[]={
    {-1,0,0,0,NULL}
  };

 

Is this a known issue, can anyone reproduce?

Outcomes