I'm trying to develop some code to run on an XC-2 board and during debugging I'm using a test output port (ref clocked, so 100MHz) which I am toggling and examining on an oscilloscope. I found that if I build my code for debug, I get much slower execution with some things than building for release. In particular doing an input from a timer seems to be pretty slow in debug. For example;
Code: Select all
p_test <: 1;
p_test <: 0;
If I add a timer input operation in between the two port outputs, like;
Code: Select all
p_test <: 1;
t :> timeval;
p_test <: 0;
Am I missing something big here, or is there a really significant performance penalty when trying to debug stuff?