* the romsize outcome in both the IDE (compiler messages) and the logfile show "bytes" in stead of "words".
The total romsize is 64Kbytes, but the sum of "used" and "free" is 44028, much less than 64K.hint: 0 1144 Used ROM (bytes): 1286 (3%) Free ROM (bytes): 42742 (97%) Used ROM (bytes): 1286 (3%) Free ROM (bytes): 42742 (97%)
In reality the romsizes given are some kind of "words", not "bytes". Please correct this by mentioning the correct amount of bytes or change the unit from "bytes" to "words" (a word is not 2 bytes here!).
Additionally: the datasheet mentions the P24FJ64GA002 to have 22K words of Rom. This means the value shown by the compiler is an "unknown" unit, not equal to program "words" nor "bytes".
* In the logfile and the IDE message window the used and free values are mentioned twice.
* I have seen both above phenomena before (and signalled them in the mP PRO forums).
I am worried and surprised to see them again in the mP dsPic compiler... I hope sincerely that remarks
made for one compiler also be checked (and corrected if necessary) for other compilers.
[edited] About rom size:
Each "instruction word" is 3 bytes, in 2 addresses (each address holds a word -2 bytes-, but the high order byte of the odd addresses are not used).
So, this means 3/2 bytes per rom address. If the romsize is calculated according this "type" (taking into account "addresses" = 1.5 byte/address) then the mE calculation is correct: 44028 * 1.5 = 66042 bytes.
In the MircoChip method (22K "words"), the "instruction word" size is used: 3 bytes per word. This gives 22 * 3 = 66000 bytes (I assume the "22k" is 22 * 1000, and not 22 * 1024).
Sigh.