This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Link List

xdata struct EEPROM {

unsigned int Last_Data; struct EEPROM *Node; };

struct EEPROM xdata * xdata p; p = (struct EEPROM xdata *)0x0FF6;
if i will print the following statement
printf("Size of p = %d",(unsigned int)sizeof(*p));

then it will shows the 5,but actually it should show the 4 bytes

Parents
  • I agree that there may be some 'exotic' cases where a LL could be applied to the '51 even in a control app. That, however, should not be the first approach for the very reason that the "find the slot" is of indeterminate timing which is the bane of countless control apps.

    I guess that I have not realized, till now, that my objection to LLs in a '51 app is due to just that. LLs are particularily bad in this respect since the user is 'responsible for' how indeterminate it is.

    Erik

Reply
  • I agree that there may be some 'exotic' cases where a LL could be applied to the '51 even in a control app. That, however, should not be the first approach for the very reason that the "find the slot" is of indeterminate timing which is the bane of countless control apps.

    I guess that I have not realized, till now, that my objection to LLs in a '51 app is due to just that. LLs are particularily bad in this respect since the user is 'responsible for' how indeterminate it is.

    Erik

Children