#avr Logs

Apr 12 2019

#avr Calendar

06:52 AM paulo_ is now known as Guest6953
07:57 AM gsi__ is now known as gsi_
03:30 PM matthias__: Hello, I have written a small class. When I move it into a library with separate definition and implementation .hpp + .cpp my hex file is 58 bytes larger than when I make it header-only and move implementation to the header file of the library. Why is this so?
03:30 PM tpw_rules: because cross-module optimization is hard
03:30 PM tpw_rules: and also probably not enmabled
03:30 PM tpw_rules: use -flto to the compiler and linker and it should be better
03:33 PM matthias__: tpw_rules: great, now the size is even smaller than before :) Thanks!
03:34 PM tpw_rules: be aware that it makes debugging impossible, but it's not really possible on AVR anyway
03:37 PM matthias__: I'm using it for a PJON RS485 Bootloader so every byte is counted since this library is very large by house.
03:37 PM tpw_rules: use -Os too
03:39 PM matthias__: tpw_rules: already in my Makefile :)
04:02 PM LeoNerd: Hah... debugging... on AVR? That's when you blink an LED at the right time, yes?
04:12 PM matthias__: LeoNerd: I mostly do it with a serial connection
04:13 PM LeoNerd: Mmm that can work too, depends on speed
04:13 PM LeoNerd: I was debugging my 400kHz I²C slave recently, and UART is waaay too slow
09:31 PM tpw_rules: yeah that is one thing i really like about ARMs, they have actual debuggers for basically no money
11:41 PM day_ is now known as day