On Mon, 2025-03-10 at 22:22 -0500, R Philley wrote: > Package: gcc-avr > Version: 1:5.4.0+Atmel3.6.2-3 > Severity: minor > X-Debbugs-Cc: rp80...@flash.net > > Dear Maintainer, > > * What led up to the situation? > > Needed to lookup options for the "avr-gcc" command. Could not find a > man page. > As "gcc" has a companion package "gcc-doc", I looked for and could > not find a > package "gcc-avr-doc". Tried the "gcc" man page, but it was not > helpful due > different version levels. > > avr-gcc --version: avr-gcc (GCC) 5.4.0 > gcc --version: gcc (Debian 12.2.0-14) 12.2.0 > > Specifically, I was looking for program optimization options. Tried > "-Oz" from > "gcc" man page, but it was not supported by "avr-gcc". > > This leads me to humbly request that the man for "avr-gcc" be built > into an > installable package. (Perhaps "gcc-avr-doc" ?) > > > Any attention to this issue would be appreciated. Thanks! > > > -- System Information: > Debian Release: trixie/sid > APT prefers stable-updates > APT policy: (500, 'stable-updates'), (500, 'stable-security'), > (500, 'stable') > Architecture: amd64 (x86_64) > > Kernel: Linux 6.1.0-31-amd64 (SMP w/2 CPU threads; PREEMPT) > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), > LANGUAGE not set > Shell: /bin/sh linked to /usr/bin/dash > Init: systemd (via /run/systemd/system) > LSM: AppArmor: enabled > > Versions of packages gcc-avr depends on: > ii binutils-avr 2.26.20160125+Atmel3.6.2-4 > ii libc6 2.36-9+deb12u9 > ii libgmp10 2:6.2.1+dfsg1-1.1 > ii libmpc3 1.3.1-1 > ii libmpfr6 4.2.0-1 > ii zlib1g 1:1.2.13.dfsg-1 > > gcc-avr recommends no packages. > > Versions of packages gcc-avr suggests: > ii avr-libc 1:2.0.0+Atmel3.6.2-3 > ii gcc 4:12.2.0-3 > ii gcc-doc 5:12.2.0-1 > > -- no debconf information
You will probably get better results by updating your AVR toolchain to the latest if possible. $ avr-gcc --version avr-gcc (GCC) 14.2.0 $ avr-gcc --help=optimizers The following options control optimizations: -O<number> Set optimization level to <number>. -Ofast Optimize for speed disregarding exact standards compliance. -Og Optimize for debugging experience rather than speed or size. -Os Optimize for space rather than speed. -Oz Optimize for space aggressively rather than speed. <...> For a trivial example: $ rm a.out $ avr-gcc -mmcu=attiny1616 -Oz main.c $ avr-size a.out text data bss dec hex filename 210 0 0 210 d2 a.out You may also wish to refer to /usr/share/doc/gcc-avr/README.Debian Thanks -Steve