[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [patch #3729] Printf for integers speed up
From: |
anonymous |
Subject: |
[avr-libc-dev] [patch #3729] Printf for integers speed up |
Date: |
Wed, 9 Feb 2005 23:03:58 +0000 |
User-agent: |
|
Follow-up Comment #1, patch #3729 (project avr-libc):
Final (I hope) version of `ultoa_invert.S'.
Comparison old (avr-libc 1.2.1) and new `printf':
(With: avr-gcc 3.3.4, -Os -frename-registers, PRINTF_STD)
sprintf(s,"%d",12345), clocks:
at91s8515: 7096 --> 1717
atmega8: 6945 --> 1633
sprintf(s,"%x",0x1234), clocks:
at91s8515: 5747 --> 1059
atmega8: 5622 --> 1006
main() { sprintf(s,"%d",12345); return 0; }
size, words:
at90s8515: 1048 --> 1026
atmega8: 961 --> 939
vfprintf.c, stack usage, bytes:
36 --> 33
Deep testing is needed for decimals.
_______________________________________________________
Additional Item Attachment:
File name: itoa_fast-20050210.tar.gz Size:13 KB
Tarball with sources and test suite.
<http://savannah.nongnu.org/patch/download.php?item_id=3729&item_file_id=4166>
_______________________________________________________
This item URL is:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=3729>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/