nobo...@web.de wrote:
in the example stackcheck there are some confusing comments:
Due to the line

extern unsigned short _end;  ///<Last used byte of the last segment in RAM 
(defined by the linker)

_end is an uint16_t but the comment says byte = unsigned char (=uint8_t).
Is this a bug in the comment?

_end is an address (and thus 16 bits wide on an msp), that points to the first free byte (or after the last used byte) in RAM. as i want to write a 16 bit "stack marker", i declare a short variable and not a pointer. this also assumes that _end points to an even address (which is usualy the case wih mspgcc).

chris

Reply via email to