Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Alloca is allocations on the stack, seems the kernel might be stack based, but the os itself has it's own implementation of malloc. Which is heap based. https://github.com/google/pebble/blob/main/src/libos/include...

I'm also seeing references to rtos as the true underlying os though.



It was based on FreeRTOS, but FreeRTOS at the time was extremely bare bones and only provided a preemptive scheduler, task management, and synchronization primitives. Everything else (memory management, I/O, ...) had to come either from whatever libc implementation was in use, or be built from scratch.


Thanks, does that mean early FreeRTOS is a good beginner project for OS study?


In my opinion it's not always the most readable codebase, due to some idiosyncratic style choices, but it definitely has the advantages of being small and focused.


Thank you!





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: