Forum Discussion
Altera_Forum
Honored Contributor
11 years agoNIOS-II C Code optimization
I have defined a code looks like below: Style 1: function() { variable declaration and initialization int N; N= read_iteration(); for (n=0; n< N; n++) { i...
Altera_Forum
Honored Contributor
11 years agoThere isn't anything necessarily slow about the change in coding style. Assuming you're turning on the compiler optimization flags, your problem is most likely with the details of your functions. You might be able to answer your question yourself very quickly by single stepping through the assembly of the two implementations.