Page 1 of 1

Any benefit in using BYTE on a 24 series

PostPosted: Wed Jun 17, 2015 3:03 pm
by Timbo
Hi,

As the 24 series 16bit is the any code benefit in using Byte sized variables?

8 it devices I can see the rational in code size....

Re: Any benefit in using BYTE on a 24 series

PostPosted: Wed Jun 17, 2015 4:44 pm
by Jerry Messina
I'm sure there are exceptions, but for the majority of things probably not since the PIC24 has instructions for both byte and word sized variables.

For some operations you might even see LESS code when using 16-bits, esp. if you have any optimization enabled.