how i can implement variable length data base ( or data storage structure)in keil C programe?
linked list, B-tree, heap etc...
Ring-buffer?
binary tree...?
hash table...?
yes , i know that but how would i implementing in keil C51, any sample code, which give me idea
We can't spend a week trying to pump random source code into this thread.
You haven't spent any time at all trying to tell us your needs, and exactly what access and allocation patterns you will have. You will have to take the lead, by showing that this is important to you and supply the best information you can.
Think about how you implement them "normally", then check if C51 poses any restrictions on that - Please read the manual: http://www.keil.com/support/man/docs/c51/
You also need to be aware of the limitations of the underlying architecture - why do you actually want to do this on an 8051??
the 8052 Max RAM is 64K. If you need more than that you need external storage. You can Use Banking to increase it, but it adds a lot of complexity. Serial memory or SD Cards are better since you will not be time critical (see how a little info from you changes the answers you get) If you are looking for malloc(). It is there but you need to configure it. Also it is a very poor choice for a small embedded system.
how i can implement variable length data base
you will need memory space for the max size, why not just allocate that or "all available memory"?
Erik
View all questions in Keil forum