Hacker Times
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
shakna
on Nov 29, 2016
|
parent
|
context
|
favorite
| on:
Writing C software without the standard library
AVR atmega based devices generally have about 2kb SRAM, and 32kb flash. Maybe 2kb EEPROM.
m_eiman
on Nov 29, 2016
[–]
This is true, but the stdlib provided by the compilers aimed at these chips is usually very bare bones and size-optimized to begin with. So it's likely hard to save much space by reimplementing subsets of it.
shakna
on Nov 29, 2016
|
parent
[–]
True, but you often end up avoiding parts of the stdlib like malloc anyway, because they tend to be heavy handed on the board.
(I've never needed to remove stdlib yet).
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: