Ticket #65 (new defect)

Opened 8 months ago

Last modified 7 months ago

patest_in_overflow does not work with compiler optimizations

Reported by: bjornroche Owned by: bjornroche
Priority: major Milestone:
Component: test Version:
Keywords: patest input overflow optimization compile Cc:

Description

patest_in_overflow, at least on the mac, must be built without optimization in order to work. this is because, as far as I can tell, the compiler is smart enough to realize that the sin calculations it's being asked to compile are never used, so the CPU utilization never goes very high. Also, the code seems to assume that the CPU utilization will always be a linear function of the number of sines, which is probably not true as soon as you have dropouts.

Change History

Changed 7 months ago by rossb

  • owner changed from somebody to bjornroche

How about adding the following to the end of the callback function?

{

/* avoid the optimizer optimizing away our sine calculations

by passing the resulting value to an external function */

char s[50]; sprintf(s, "%f", out);

}

Note: See TracTickets for help on using tickets.