hello; i want to know that where we use link list, function pointer, generic pointer in embedded programming
Wherever they provide a solution that most effectively meets the requirements!
However, note that there are major restrictions on the use of function pointers in Keil C51: http://www.keil.com/support/docs/210.htm http://www.keil.com/appnotes/docs/apnt_129.asp
Do you actually understand what a Generic Pointer is?
Keil C51 uses the term in a specific sense: http://www.keil.com/support/man/docs/c51/c51_le_genptrs.htm
You should be able to see that this has both advantages and costs...
ANSI 'C' uses the term "generic pointer" in a somewhat different sense - so, which one did you actually mean?
Linked Lists are not generally a great idea on an 8051, at it doesn't cope that well with indirection.
In general, Linked Lists are often associated with dynamic memory allocation, but this is not necessary - see: " href= "http://www.8052.com/forum/read.phtml?id=70144">www.8052.com/.../read.phtml Whether it's likely to be particularly relevant to a system appropriate to an 8051 is debatable - you might just do something simpler like this: www.8052.com/.../read.phtml