[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [patch #3618] Optimization strtol(), a little.
From: |
anonymous |
Subject: |
[avr-libc-dev] [patch #3618] Optimization strtol(), a little. |
Date: |
Wed, 12 Jan 2005 23:12:23 +0000 |
User-agent: |
|
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: an anonymous user
Posted on: 2005-01-12 18:12 ()
_______________________________________________________
Follow-up Comment:
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 .
_______________________________________________________
Additional Item Attachment:
File name: strtol-20050112.tar.gz Size:5 KB
Tarball with patched source and test suite.
<http://savannah.nongnu.org/patch/download.php?item_id=3618&item_file_id=4029>
==============================================================================
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/2005 at 02: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/2005 at 18: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/2005 at 01: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: Wed 01/12/2005 at 18: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/2005 at 01: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/2005 at 02: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/