[riot-notifications] [RIOT-OS/RIOT] SAUL: Reduce RAM requirements (#11392)

Marian Buschsieweke notifications at github.com
Mon Apr 15 13:01:52 CEST 2019


With gcc-avr in version 8.3.0 I get

```
   text	   data	    bss	    dec	    hex	filename
  10332	   2400	    971	  13703	   3587	with_pr.elf
  10066	   2474	    971	  13511	   34c7	wo_pr.elf
```

for the Arduino-Mega2560.

Basically, it depends on the application and toolchain if and how much memory is saved, as it will can only save RAM if `printf` does not get linked in.

Keeping in mind that e.g. `GCC` does not use `printf()` in a lot of cases (e.g. `printf("%s\n", foo)` will be replaced by `puts(foo)`), this can happen more often than one would guess when just looking at the source code. This is also why it does save RAM on the AVR. But that obviously is not the case on ARM :-/

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11392#issuecomment-483206449
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190415/0945eabb/attachment.html>


More information about the notifications mailing list