#avr Logs

Jan 24 2019

#avr Calendar

12:04 AM nabil_ is now known as nabil
04:21 AM [1]MrMobius is now known as MrMobius
03:43 PM TLoFP_: I hope someone can explain to me memory usage and optimization, the following line takes up 8 bytes of program memory which is insane: TxBuffer1[4+ 0] = params.version; (both TxBuffer and params.version are uint8_t) Why would this line take up so much program space?
03:44 PM TLoFP_: And what can I do to increase the memory efficiency
03:58 PM vmt: what's more insane is you thinking instructions are for free
04:01 PM HighInBC: you may be conflating ram space with flash space
04:01 PM HighInBC: from https://www.nongnu.org/avr-libc/user-manual/pgmspace.html "The AVR is a Harvard architecture processor, where Flash is used for the program, RAM is used for data, and they each have separate address spaces."
04:04 PM polprog: without context i bet that its just pointer maths on one side (txbuffer+4) and the other (params+offset to version)
04:04 PM polprog: why dont you objdump -d and find out :v
04:13 PM cehteh: instructions are 2 bytes so that code need 8 bytes code is rather modest, load params.version into a register, pushing that out to txbuffer[] are already 4 bytes .. plus for the register you need push and pop for the stackframe
04:14 PM cehteh: looks pretty good that way
11:47 PM day_ is now known as day