At 14:34 14-11-2009 -0700, you wrote:
>Does msp430-gcc provide any systematic way, such as a generated symbol, from 
>which a C source file can determine the size of a function? I have a
function 
>for field reprogramming, which is moved to RAM before use, and need to know 
>how many words to move.

You could have the linker deal with that by forcing the function to exist
in RAM like an initialized global variable:

void flash_startup() __attribute__((section(".data"),  weak()));

void flash_startup()
{
        //do something
}

Altough must admit this trick only seems to work when both the caller and
callee are in the same C (object) file.

Nico Coesel


Reply via email to