Code space needed with MPASM??
I have a program that runs in a 16F877A and I want to replace the microcontroller with an 18F4550 to get more code space for extra features.
The 877A assembled with PM takes a code space of 6567 words.
The 877A assembled with MPASMWIN takes 6565 words.
The 18F4550 assembled with MPASMWIN takes 10950 bytes. (Does this mean 5,475 words or 10950 words??)
MCS+ reports program memory used for the 877A in words but MCS+ reports memory used in the 4550 in bytes. Do they really mean bytes?? I would have thought it meaningless to report the number of 16 bit program instructions needed in bytes.
How can I quickly tell if the 4550 program really takes 5475 or 10950 words of program memory?
Cheers
Brian
The 18F4550 looks to be smaller code
Using the same program, I checked the .HEX file made by MPASMWIN for both the 877A and the 4550 micros. The .HEX for the 877A was 37K and the .HEX for the 4550 was 31K.
37 * 5475/6565 = 31 close enough.
I guess MCS+ really does report in BYTES used for program memory with some microcontrollers and in WORDS for others - watch out.
Brian