If the GCC compiler needs the LPM opcode to use strings out out flash, how does it initialize the ram variables with the flash strings at startup?
Jeff Dombach, JLD Systems
"We do the stuff behind the buttons!"
Your source for embedded solutions with a 100% Guarantee.
This is done inside the C runtime startup code, using
either LPM or ELPM as well. It requires that your
flash programmer Hex file has been constructed out of
both, the .text and the .data section of the generated
I thought I heard that some of the Tiny processors don't support the LPM opcode. If that's true, how do they init ram with flash strings?
They are not supported by the C compiler anyway. ;-)
These are the controllers that don't have RAM.
© 2021 Microchip Technology Inc.