RAM TYPES
Posted: Sat Mar 14, 2015 8:06 pm
Can someone give me this in very simple english.
I'm messing with the ESP8266 in C and wanted to know how much RAM I have...
I used the system call which said
data:2768
rodata: 5332
bss: 32992
heap: 40824
To test, I created a 10,000 byte buffer and poked something into it - the difference being the BSS went up by 10k exactly and the heap went down by 10k exactly.
Can someone explain the first 3 results... clearly as the heap goes down the BSS whatever that is goes up (used memory?) - if I'd used a static buffer would it have made any difference?
Pete.
I'm messing with the ESP8266 in C and wanted to know how much RAM I have...
I used the system call which said
data:2768
rodata: 5332
bss: 32992
heap: 40824
To test, I created a 10,000 byte buffer and poked something into it - the difference being the BSS went up by 10k exactly and the heap went down by 10k exactly.
Can someone explain the first 3 results... clearly as the heap goes down the BSS whatever that is goes up (used memory?) - if I'd used a static buffer would it have made any difference?
Pete.