This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Enumerations

Hi,

We're currently developing code for the MSP430 using CCE v3 (incidently we might move to v4 at some point).

There are parts of the code where I'm currently using defines where I could possible used enum's for neatness. I was wondering are enum's "inline" in there behaviour the way the defines are? i.e. Are the numeric values of the enum subsitiuted into the code at compile time or is there some kind of fetch that goes on at run time? I'm just trying to work if there are any performance or memory pay-offs for using enum's.

Thanks,

Ben.