Forum Discussion
Altera_Forum
Honored Contributor
10 years agoDid you solve this? Do some experimentation to see if the problem actually has anything to do with the content of your code. For example, use just one loop instead of two. If necessary, put some math operation inside the loop to take up time. Use just one printf that is shorter, like just the "loops" one. Try removing the printf. Use while() instead of for(). FYI, n++ would commonly be used in C instead of n=n+1.
Ron