My customer now wants to optimize loop addition statements like the following due to runtime issues.
for (i = 0; i < length; i++) result += (int32_t) p1[i] * p2[i];
As we know, if we want to use DMAC, --opt_level need to be set to 2 or higher. However, in order to ensure the reliability of the application, the customer is unwilling to increase the optimization level(--opt_level ==0). Therefore, I would like to ask whether DMAC can be turned on through configuration in this case. If not, is there a better solution?