Re: GCC bug?

2021-12-17 Thread Bruce D. Lightner
^^ treg); } OVER HERE ->>>>>--^ Either I'm missing something here, or someone needs to explain to me why a test for AVR_HAVE_RAMPZ preceeds the use of AVR_HAVE_RAMPD in the code. Shouldn't that last one a

Re: GCC bug?

2021-12-17 Thread Bruce D. Lightner
uot; AVR feature. Best regards, Bruce On 12/17/2021 5:39 AM, Ian Molton wrote: I think you misunderstood me; I know this is where the compiler will save RAMPZ where needed. So why is it referencing RAMP *D* ? On 17/12/2021 00:50, Bruce D. Light

Re: GCC bug?

2021-12-16 Thread Bruce D. Lightner
E_RAMPD looks shady to me? Anyone with deeper knowledge want to have a look? -Ian -- *Bruce D. Lightner* *Lightner Engineering* 8551 La Jolla Shores Drive La Jolla, California 92037-3044 Mobile/SMS: +1-858-228-7579 Voice: +1-858-551-0770 ext. 2 Email: light...@lightner.net URL: http://w

Re: static class member as interrupt handler works, but not if class is templated

2021-04-12 Thread Bruce D. Lightner
tion model.  Ask me how I know! :-) Later AVR microcontrollers with hardware support for divide added a status bit to SREG that needed to be saved/restored.  That's one of the reasons one needs to set the "machine type" correctly when using avr-gcc. Best regards, Bruce D. Lightner L

Re: static class member as interrupt handler works, but not if class is templated

2021-04-10 Thread Bruce D. Lightner
s and class nonsense. [FLAME OFF!] BTW: I suggest that you quit while you're ahead---but David and I somehow know that you won't! :-) Best regards, Bruce D. Lightner Lightner Engineering La Jolla, California light...@lightner.net https://www.linkedin.com/in/brucedlightner/

Re: [avr-gcc-list] avr-gcc ABI: return 8-bit value from function

2018-06-05 Thread Bruce D. Lightner
313 if the 'C' blows out, I guess. Erik ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list -- *Bruce D. Lightner* *Lightner Engineering* 8551 La Jolla Shores Drive La Jolla, California 92037-3044 Mobile/SMS: +1-858-228-7579 Vo

Re: [avr-gcc-list] Avr-gcc versions comparison.

2007-02-21 Thread Bruce D. Lightner
). Experiments show that returning 0 is what triggers the bad behavior. This bad example takes 6 AVR instructions to do the work of one sbic instruction. Best regards, Bruce -- Bruce D. Lightner Lightner Engineering La Jolla, California Voice: +1-858-551-4011 FAX: +1-858-551-0777 Email: [EMAIL PROTECTED

Re: [avr-gcc-list] Installing WinAVR 20070122 broke older 3.4.5 install?

2007-01-31 Thread Bruce D. Lightner
\Software\Free Software Foundation\WinAVR\WinAVR_20060421\BINUTILS HKLM\Software\Free Software Foundation\WinAVR\WinAVR_20060421\G++ As I've noted, that's how Microsoft does it, no doubt for good reasons. Best regards, Bruce -- Bruce D. Lightner Lightner Engineering La Jolla, California Voice: +1

Re: [avr-gcc-list] Installing WinAVR 20070122 broke older 3.4.5install?

2007-01-31 Thread Bruce D. Lightner
will have to answer. I'm guessing that there is already WinAVR-specific code there anyway if the Windows registry is being used. Best regards, Bruce -- Bruce D. Lightner Lightner Engineering La Jolla, California Voice: +1-858-551-4011 FAX: +1-858-551-0777 Email: [EMAIL PROTECTED] URL: http

Re: [avr-gcc-list] AT90CAN128 bootloader

2006-11-25 Thread Bruce D. Lightner
maiden name?). I've posted a ZIP file here too... http://www.lightner.net/avr/bootstap/ARCbootloader.zip Best regards, Bruce -- Bruce D. Lightner Lightner Engineering La Jolla, California Voice: +1-858-551-4011 FAX: +1-858-551-0777 Email: [EMAIL PROTECTED] URL: http://www.lightner.net/lightner

Re: [avr-gcc-list] Interrupt prologue and epilogue (TEMP register)

2006-10-11 Thread Bruce D. Lightner
rocontroller family? If there is more than one TEMP register, can one in fact write code to save/restore TEMP inside an ISR? [Hint: Unlikely!] Best regards, Bruce -- Bruce D. Lightner Lightner Engineering La Jolla, California Voice: +1-858-551-4011 FAX: +1-858-551-0777 Email: [EMAIL PROTEC

[avr-gcc-list] Mixed Assembly Listings (and Degenerate I/O Code Examples)

2006-10-06 Thread Bruce D. Lightner
"special"? Maybe an automatic code-generation "regression test" for this is needed, assuming that will get the problem fixed in a future "avr-gcc" release? This particular code generation bug has been in "avr-gcc" for literally years now! I'd be happy to provide s

Re: [avr-gcc-list] Adding date/version information to project??

2005-11-29 Thread Bruce D. Lightner
to include version.o in the $(OBJ) list. If you do, then remove the reference to version.o from the above link $(CC) command. Anyway, this make logic causes the build_time string to be updated *only* when the program is actually linked. Best regards, Bruce -- Bruce D. Lightner Lightner Engineering

Re: [avr-gcc-list] Adding date/version information to project??

2005-11-29 Thread Bruce D. Lightner
absolutely have to include version.o in the $(OBJ) list. If you do, then remove the reference to version.o from the above link $(CC) command. Anyway, this make logic causes the build_time string to be updated *only* when the program is actually linked. Best regards, Bruce -- Bruce D. Lightner

Re: [avr-gcc-list] Code version timestamp

2005-09-17 Thread Bruce D. Lightner
Anton Erasmus wrote: Would love to use these Macros, but whenever I try to use __DATA__ for example, the compiler complains that : error: `__DATA__' undeclared (first use in this function) Are these macros been introduced so recently in gcc that my sliiighlty old 3.4.3 version doesn't

Re: [avr-gcc-list] AVR Gcc with AVR Tiny

2005-08-17 Thread Bruce D. Lightner
to flame away... I'll give you (all) the courtesy of *not* flaming you back! :-) Best regards, Bruce -- Bruce D. Lightner Lightner Engineering La Jolla, California Voice: +1-858-551-4011 FAX: +1-858-551-0777 Email: [EMAIL PROTECTED] URL: http://www.lightner.net/lightner/bruce