This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Variable too large
- From: "D. Towner" <towner at compsci dot bristol dot ac dot uk>
- To: gcc <gcc at gcc dot gnu dot org>
- Date: Thu, 2 May 2002 14:38:33 +0100 (BST)
- Subject: Variable too large
Hi all,
I am writing a port of gcc for a 16-bit DSP. I have been trying to create
struct's which are 32K+ bytes in size, but keep getting the error that
they are too large. Having rooted around in the code, I see that a
variable cannot have a size greater than 2^15 bytes (for a 16-bit
machine). Why is there such a restriction? I can't find any mention of
such a limit in the standard documents. Why is the limit not 2^16
bytes?
Thanks,
Dan.
===============================================================================
Dan Towner
picoChip Designs Ltd.
dant@picochip.com
http://www.picochip.com