[Icc-avr] Re: sprintf limitation?

Paul Mateer paul.aa9gg at gmail.com
Mon Jul 7 08:18:40 PDT 2008


Both ways do work fine, but.....I'm at a code space premium.  The "L" way
gives me 29835 bytes after compression, my "2-line split" method gives me
29820 bytes after compression.  FYI... before compression "L" = 37449 bytes,
"2-line" = 37457 bytes!

On Mon, Jul 7, 2008 at 10:11 AM, Paul Mateer <paul.aa9gg at gmail.com> wrote:

> That works too :)
>
>
> On Mon, Jul 7, 2008 at 9:55 AM, Andy Syms <asyms at technosoft.co.uk> wrote:
>
>> >  Thanks for the responses.  I found the problem:
>> >
>> > a = (VAL[0] - 48) * 10000;
>>
>> Try using
>>
>> a = (VAL[0] - 48) * 10000L;
>>
>> to cause the expression to be evaluated as a long and not an int.
>>
>>
>> Andy.
>>
>> _______________________________________________
>> Icc-avr mailing list
>> Icc-avr at imagecraft.com
>> http://dragonsgate.net/mailman/listinfo/icc-avr
>>
>
>
>
> --
> Paul Mateer, AA9GG
> Elan Engineering Corp.
> www.elanengr.com
>



-- 
Paul Mateer, AA9GG
Elan Engineering Corp.
www.elanengr.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080707/d8ee9fd7/attachment.html


More information about the Icc-avr mailing list