[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [patch #3618] Optimization strtol(), a little.
From: |
Joerg Wunsch |
Subject: |
[avr-libc-dev] [patch #3618] Optimization strtol(), a little. |
Date: |
Tue, 18 Jan 2005 06:38:10 +0000 |
User-agent: |
Mozilla/5.0 Galeon/1.2.13 (X11; FreeBSD i386; U;) Gecko/0 |
This is an automated notification sent by Savannah.
It relates to:
patch #3618, project AVR C Runtime Library
==============================================================================
LATEST MODIFICATIONS of patch #3618:
==============================================================================
Posted by: Joerg Wunsch <joerg_wunsch>
Posted on: 2005-01-18 06:38 (Europe/Berlin)
_______________________________________________________
Additional Item Attachment:
File name: strtoul-20050116.tar.gz Size:5 KB
Tarball submitted by Dmitry by way of the mailing list -- Joerg
<http://savannah.nongnu.org/patch/download.php?item_id=3618&item_file_id=4060>
==============================================================================
OVERVIEW of patch #3618:
==============================================================================
URL:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=3618>
Summary: Optimization strtol(), a little.
Project: AVR C Runtime Library
Submitted by: None
Submitted on: Thu 01/06/05 at 07:14
Category: None
Priority: 1 - Later
Status: None
Privacy: Public
Assigned to: None
Originator Email: address@hidden
Open/Closed: Open
_______________________________________________________
It is possible to speed up strtol() by excluding division operation for most
common bases (10,16,8 and, may be, 2). I have attempt do it.
In result the quantity of clocks for `strtol("12345",0,0)' has decreased with
1680 up to 720. Use of a stack has decreased on 32 bytes. The size of a code
has remained practically same: 291 -> 294 words. (avr-gcc 3.3.4, atmega8, -Os
-frename-registers).
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 01/12/05 at 23:12 By: Anonymous
It is difficult to bring optimization to a stop.
strtol-20050112: extra size reducing and speed up.
And tests are moved from source to separate file: strtol-tst.sh .
-------------------------------------------------------
Date: Fri 01/07/05 at 06:33 By: Anonymous
TODO about strings, like "0x" is fixed. Tests added. Code size now is 290
words (better), but advantage in stack usage -- only 30 bytes (on the same
compiler conditions).
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 01/18/05 at 06:38 Name: strtoul-20050116.tar.gz Size: 5.32KB
By: joerg_wunsch
Tarball submitted by Dmitry by way of the mailing list -- Joerg
<http://savannah.nongnu.org/patch/download.php?item_id=3618&item_file_id=4060>
-------------------------------------------------------
Date: Wed 01/12/05 at 23:12 Name: strtol-20050112.tar.gz Size: 5.11KB By:
None
Tarball with patched source and test suite.
<http://savannah.nongnu.org/patch/download.php?item_id=3618&item_file_id=4029>
-------------------------------------------------------
Date: Fri 01/07/05 at 06:33 Name: strtol-20050107.c Size: 11.53KB By:
None
TODO fixed, test expanded.
<http://savannah.nongnu.org/patch/download.php?item_id=3618&item_file_id=4003>
-------------------------------------------------------
Date: Thu 01/06/05 at 07:14 Name: strtol.c Size: 8.74KB By: None
strtol.c, optimized a little
<http://savannah.nongnu.org/patch/download.php?item_id=3618&item_file_id=4001>
==============================================================================
This item URL is:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=3618>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/