Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/26/02 19:39
Read: times


 
#33223 - RE: linked list serial port buffer
can a serial port buffer be implemented by a linked list aargh for the 8052 using malloc aaaarrrrrgggh and free?
This way we get the advantage of memory efficiency and reduce the risk of losing precious serial data.

You are mentioning the two methods that are the worst to use in a small memory design.
Linked lists are cumbersome at best and wasteful at worst. Malloc require that you reserve the maximum buffer space ever used for that purpose, so why not just make n buffers.

Erik


List of 19 messages in thread
TopicAuthorDate
linked list serial port buffer            01/01/70 00:00      
RE: linked list serial port buffer            01/01/70 00:00      
RE: linked list serial port buffer            01/01/70 00:00      
RE: linked list serial port buffer, Jez            01/01/70 00:00      
RE: Erik            01/01/70 00:00      
RE: linked list serial port buffer            01/01/70 00:00      
RE: linked list serial port buffer            01/01/70 00:00      
RE: linked list serial port buffer            01/01/70 00:00      
RE: Erik            01/01/70 00:00      
RE: linked list serial port buffer            01/01/70 00:00      
An appropriate example?            01/01/70 00:00      
RE: An appropriate example?            01/01/70 00:00      
RE: An appropriate example?            01/01/70 00:00      
RE: linked list serial port buffer            01/01/70 00:00      
RE: Interrupt precognition            01/01/70 00:00      
RE: linked list serial port buffer            01/01/70 00:00      
RE: linked list serial port buffer            01/01/70 00:00      
RE: linked list serial port buffer            01/01/70 00:00      
RE: linked list serial port buffer            01/01/70 00:00      

Back to Subject List