gnupic: SDCC register optimization


Previous by date: 2 Jul 2002 15:52:22 -0000 Re: gpsim, Deva Seetharam
Next by date: 2 Jul 2002 15:52:22 -0000 support for 18Fxxx parts ?, Jesse Lackey
Previous in thread:
Next in thread: 2 Jul 2002 15:52:22 -0000 Re: SDCC register optimization, Scott Dattalo

Subject: SDCC register optimization
From: Scott Dattalo ####@####.####
Date: 2 Jul 2002 15:52:22 -0000
Message-Id: <Pine.LNX.4.44.0207020828480.1585-100000@ruckus.brouhaha.com>

A new register optimization algorithm has been added to SDCC. This should 
tremendously help applications that use pointers. For example, the 
regression program pointer1.c:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/sdcc/sdcc/src/regression/pointer1.c

when compiled with the latest version of SDCC saves 25 registers:

$ sdcc -S -mpic14 pointer1.c
 *** Saved 11 registers ***
 *** Saved 12 registers, total saved 23 ***
 *** Saved 2 registers, total saved 25 ***

That's 25 out of the 40 originally declared! There's still room for 
improvement, but this is a fairly significant enhancement that a few of 
you can benefit from.

Scott


Previous by date: 2 Jul 2002 15:52:22 -0000 Re: gpsim, Deva Seetharam
Next by date: 2 Jul 2002 15:52:22 -0000 support for 18Fxxx parts ?, Jesse Lackey
Previous in thread:
Next in thread: 2 Jul 2002 15:52:22 -0000 Re: SDCC register optimization, Scott Dattalo


Powered by ezmlm-browse 0.20.