On Mon, 29 Oct 2018, Manu Abraham wrote: > Hi, > > "Generally", "int" has the native register width of the CPU under conside= ration. > However, you can also use the sizeof() keyword to find the same. > > The answer to your question depends on the CPU architecture: > > If you use the XC8 compiler, the datatypes are defined here: > https://ww1.microchip.com/downloads/en/DeviceDoc/52053B.pdf > > If you use the XC16 compiler, the datatypes are defined here: > http://ww1.microchip.com/downloads/en/DeviceDoc/DS50002071GFinal1.pdf > > If you use the XC32 compiler, the datatypes are defined here: > http://ww1.microchip.com/downloads/en/DeviceDoc/50001686J.pdf > > Cheers, > Manu > > On Mon, Oct 29, 2018 at 9:56 AM David Duffy (AVD) > wrote: >> >> I must be having a blonde moment. I've inherited some C code that is >> littered with "unsigned int" and "signed int" variables. How do I find >> what size they would have been in a given mplabx project? >> David... >> Ah the joys of GCC... Although I have never used gcc on the PIC I have used it a great deal in a= =20 lot of other environments and I seem to remember getting caught once or=20 twice because of switches in the command line. So whatever else you do=20 check the actual command line used to build the "inherited" code. If=20 using "make" check the CFLAGS make variable. Regards Sergio Masci --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .