Hey,
I've been using pbp pro for a while, however I have for the first time found a need to optimise code within a loop (software PWM) and in doing so have a few questions I was wondering if anyone knew the answer to:
1: In addition to the obvious performance penalty from having an interrupt check between PBP statements, would these interrupt branches cause a significant performance decrease by causing the pipeline to be cleared after every check? I believe the branches are followed by default, and given that these branches will be taken on very few checks, it seems like it would happen a lot (between almost every PBP statement). Is there a way to change the default behavior? Have I misunderstood pipelining?
2: Is there any difference between byte[50] and byte(50)?
3: Is there any way to have PBP output a nice assembly version of the code instead of going to binary? I've noticed the .asm file produced but it seems messy and its full of macros(?) rather than assembly statements.. I'm trying to convert the following statement to assembly, but it would be much easier if I could see the what the compiler comes up with: 'If Counter = dLEDX(1) Then dLED.1 = 0'
Bookmarks