Re: Where are enums stored?
"seecwriter" <seecwriter-/[email protected]>
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
Back when I started programming with Rabbits, about v7.21P, enums were not supported. Then some time later they were added, but I seem to recall a manual blurb that stated they took up code space. But I can't find where I read that in the documentation. The big difference between enum and #define was that one took storage space, the other did not. Maybe that has changed or I just have a faulty memory. Steve --- In [email protected], Tom Collins <tom@...> wrote: > > I thought that an enum was solely a compiler thing. The names of the enums don't go onto the target, but may be a part of the MAP file or other program artifacts that the debugger can use. > > On the actual device, I believe the enum is just a 16-bit integer. > > -Tom > > > On Aug 28, 2013, at 1:28 PM, seecwriter wrote: > > I seem to recall that enums put in flash memory. Is that correct? If so, are they copied to ram on bootup? >