[riot-notifications] [RIOT] tcb_t is too big (#303)

Oleg Hahm notifications at github.com
Tue Nov 5 04:18:07 CET 2013


The tcb_t struct that every thread allocates is currently 68 bytes on a 32-bit architecture:
```
sizeof(tcb_t):          68
             sizeof(sp):            4
             sizeof(status):        2
             sizeof(pid):           2
             sizeof(priority):      2
             sizeof(rq_entry):      12
             sizeof(wait_data):     4
             sizeof(msg_waiters):   12
             sizeof(msg_queue):     12
             sizeof(msg_array):     4
             sizeof(name):          4
             sizeof(stack_start):   4
             sizeof(stack_size):    4
```
Optional fields like `msg_queue` could be outsourced to an extended tcb. `rq_entry` might be transformed into a scheduler variable. (Have to think about this.

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/303
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20131104/779bc709/attachment.html>


More information about the notifications mailing list