This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Different load/store instructions for different types of memory...



I'm wondering how I could build a version of gcc where
it would emit different types of load/store
instructions based on a (for example) attribute I gave
to a type.  For example:

  int p1* __attribute__((SRAM));  /* uses instructions
optimized for SRAM */

  int p2* __atribute__((DRAM)); /* uses instructions
optimized for DRAM */

    Am I on the right track using attributes here? If
so, a pointer to where I would begin to look to tweak
the compiler would be appreciated.

Regards,
Eric

<ericgrog@yahoo.com>

=====
Eric Peterson
ericgrog@yahoo.com

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]