Re: variable reusing

Daniel Beer <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.user
Message-ID <[email protected]>
On Tue, May 14, 2013 at 09:26:46PM +0300, Paul Sokolovsky wrote:
> More interesting question is such support for static (if not global)
> variables. When trying to do Elliptic Curve Cryptography on MSP430
> value line devices which top up at 0.5K RAM, you really wish that
> compiler could "pack" together static buffers of functions which cannot
> be active at the same time ;-). If anyone know of that to be done by
> gcc, would be nice to get some pointers.

If you have static buffers which are never in use simultaneously, why
not keep them together in a union { }?

- Daniel

-- 
Daniel Beer <[email protected]>    www.dlbeer.co.nz
IRC: inittab (Freenode)    PGP key: 2048D/160A553B

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.