avr-libc-dev
[Top][All Lists]
Advanced

[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: Fri, 07 Jan 2005 01:46:07 -0500
User-agent:

This mail is an automated notification from the patch tracker
 of the project: AVR C Runtime Library.

/**************************************************************************/
[patch #3618] Latest Modifications:

Changes by: Anonymous user
Date:  
                Fri 01/07/2005 at 06:33

------------------ Additional Follow-up Comments ----------------------------
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).






/**************************************************************************/
[patch #3618] Full Item Snapshot:

URL: <http://savannah.nongnu.org/patch/?func=detailitem&item_id=3618>
Project: AVR C Runtime Library
Submitted by: 0
On: Thu 01/06/2005 at 07:14

Category:  None
Priority:  1 - Later
Resolution:  None
Privacy:  Public
Assigned to:  None
Originator Email:  address@hidden
Status:  Open


Summary:  Optimization strtol(), a little.

Original Submission:  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: Fri 01/07/2005 at 06:33       By: 0 <None>
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: Fri 01/07/2005 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&amp;item_file_id=4003

-------------------------------------------------------
Date: Thu 01/06/2005 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&amp;item_file_id=4001






For detailed info, follow this link:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=3618>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]