Re: [avr-gcc-list] can't upgrade/patch for tiny13
Joerg Wunsch wrote: Terry Karlson [EMAIL PROTECTED] wrote: During make of avr-libc 1.2.3, I got: ../../../common/macros.inc: Assembler messages: ../../../common/macros.inc:129: Error: Macro with this name was already defined See savannah bug #12033: https://savannah.nongnu.org/bugs/index.php?func=detailitemitem_id=12033 If you want to use the latest binutils, you either have to use the avr-libc source from CVS (I've just merged the fix into the branch avr-libc-1_2-branch yesterday, so you could checkout that branch from CVS), or as a quick hack, you could add the protection #ifdef into macros.inc as the bug report abvoe suggested (but note that this is not the official fix). ... Fixing macros.inc worked fine, much thanks. -Terry Karlson ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
[avr-gcc-list] double precision bit representation
Hi all, I would like to know how a variable declared as double is represented with avr-libc. What is the maximum and minimum values that it can represent and with what resolution? I am performing floating point math which fails in certain occasion where i think it shouldn't. Hence my query... For an example i have a double variable called TempDouble which is placed at the following address in SRAM with each of the byte having the given value. How do i interpret this value in decimal? Ram Address:$0B6F $0B70 $0B71 $0B72 Value: 00 50 91 3F Thanks in Advance. -- Cheers! Kitts ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
[avr-gcc-list] Re: double precision bit representation
On Thu, 7 Jul 2005 02:27:02 +0530, Kitts wrote: I would like to know how a variable declared as double is represented with avr-libc. If you look at the archieves (and I think it is stated in the documentation too), you will find that double is identical to float. For more information take a look at the archieves. Volkmar ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Re: [avr-gcc-list] double precision bit representation
Hello, Currently avr-gcc supports only float and not double. The byte pattern given in your query results in a float value of -1.135254 Nayani P --- Kitts [EMAIL PROTECTED] wrote: Hi all, I would like to know how a variable declared as double is represented with avr-libc. What is the maximum and minimum values that it can represent and with what resolution? I am performing floating point math which fails in certain occasion where i think it shouldn't. Hence my query... For an example i have a double variable called TempDouble which is placed at the following address in SRAM with each of the byte having the given value. How do i interpret this value in decimal? Ram Address: $0B6F $0B70 $0B71 $0B72 Value:00 50 91 3F Thanks in Advance. -- Cheers! Kitts ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list