public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Jeff Krueger" <JKrueger@rft.com>
To: <gcc-help@gcc.gnu.org>
Cc: <dmgarske@yahoo.com>
Subject: How to declare an array of constants to be stored in FLASH only
Date: Mon, 03 Oct 2005 21:03:00 -0000	[thread overview]
Message-ID: <E8FF7C7357ECB34F9B7F507B05A2343A3D8173@sv-exch01.rftechnologies.com> (raw)


I am using the GCC compiler for an Atmel ATMEGA128 target.
I would like to declare a large array of constants so that it is accessible from FLASH and does not use RAM.
static const unsigned char Data[] = {0x45, 0x23, .....}
The above seems to copy the constant data into RAM
Is there a way to declare the above array so that it does not create an initialized data in RAM
I was able to do this with a different compiler/linker with the __flash keyword
static const __flash unsigned char Data[] = {0x45, 0x23, .....}
Thanks in advance,
Jeff

             reply	other threads:[~2005-10-03 21:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-03 21:03 Jeff Krueger [this message]
2005-10-03 21:46 Steven L. Zook

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E8FF7C7357ECB34F9B7F507B05A2343A3D8173@sv-exch01.rftechnologies.com \
    --to=jkrueger@rft.com \
    --cc=dmgarske@yahoo.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).