Hi guys
Just an simple question, say I have a constant
In a 8-bit MCU, it will take 6 bytes flash memory. Now my question is, how many bytes will it take in a 16-bit/32-bit MCU. Will that take 12 bytes flash memory in a 16-bit MCU and 32 bytes flash memory in a 32-bit MCU? Or does it still take only 6 bytes?
I mainly use 8-bit MCU, but there is a project that I will need to use 16-bit MCU, and it looks like the flash memory in a 16-bit MCU is used up a lot faster for some simple code.
Thanks guys!
Just an simple question, say I have a constant
Code:
char str[] = "HELLO";
I mainly use 8-bit MCU, but there is a project that I will need to use 16-bit MCU, and it looks like the flash memory in a 16-bit MCU is used up a lot faster for some simple code.
Thanks guys!