Sorry about this look away if your sensitive
As I know a lot about the way Pbpro works and it's weakness I decided to write a little test code to show the differences between my compiler and Pbpro
Below is a little bit of code and here are the statistics
Pbpro
16f877 1068 words vars 25
18f452 1798 bytes Vars 27
Another basic compiler
same code
16f877 653 words Vars 11
18f452 920 bytes Vars 8
Using the better data handling by changing "this is a long message" to CStr my_message and adding
my_message: CData "this is a long message"
16f877 399 words Vars 11
18f452 694 bytes Vars 9
Now turn the optimizer to level 6
No cdata
16f877 593 words Vars 11
18f452 848 bytes Vars 8
With Cdata
16f877 339 words Vars 11
18f452 622 bytes Vars 9
So just to recap best against best
Pbpro
16f877 1068 words vars 25
18f452 1798 bytes Vars 27
The other compiler
16f877 339 words Vars 11
18f452 622 bytes Vars 9
Like I said if your happy with your compiler stick with it.
Code:
bit1 var Bit
Bit2 var Bit
bit3 var Bit
If bit1 = Bit2 Then
bit3 = 1
GoTo lable1
EndIf
lcdout "this is a long message"
lable1:
If bit1 = Bit2 Then
bit3 = 1
GoTo lable2
EndIf
lcdout "this is a long message"
lable2:
If bit1 = Bit2 Then
bit3 = 1
GoTo lable3
EndIf
lcdout "this is a long message"
lable3:
If bit1 = Bit2 Then
bit3 = 1
GoTo lable4
EndIf
lcdout "this is a long message"
lable4:
If bit1 = Bit2 Then
bit3 = 1
GoTo lable5
EndIf
lcdout "this is a long message"
lable5:
If bit1 = Bit2 Then
bit3 = 1
GoTo lable6
EndIf
lcdout "this is a long message"
lable6:
If bit1 = Bit2 Then
bit3 = 1
GoTo lable7
EndIf
lcdout "this is a long message"
lable7:
If bit1 = Bit2 Then
bit3 = 1
GoTo lable8
EndIf
lcdout "this is a long message"
lable8:
If bit1 = Bit2 Then
bit3 = 1
GoTo lable9
EndIf
lcdout "this is a long message"
lable9:
If bit1 = Bit2 Then
bit3 = 1
GoTo lable10
EndIf
lcdout "this is a long message"
lable10:
If bit1 = Bit2 Then
bit3 = 1
GoTo lable11
EndIf
lcdout "this is a long message"
lable11:
If bit1 = Bit2 Then
bit3 = 1
GoTo lable12
EndIf
lcdout "this is a long message"
lable12:
Bookmarks