This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Many MSP430 devices have a very small amount of RAM (the MSP430FR5969 has 2kB). A simple "Hello World" printf program built for one of these devices will not execute properly as stack and heap collide before output is printed. About 1.5kB of heap is allocated to do the printf, but reducing __BUFSIZ__ to 256 brings this to around 750 bytes, and the hello world program comfortably executes on hardware. Patch is attached.
Attachment:
0001-MSP430-Define-__BUFSIZ__-as-256-to-prevent-default-o.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |