[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Data in ROM

From: Abdul Malik Khan
Subject: [avr-gcc-list] Data in ROM
Date: Sun, 23 Apr 2006 20:07:18 +0500

Hi All,

I want to define a constant array that should not be copied into the RAM during initialization. How should I define such an array?

I have tried

const unsigned char mask[] = {1, 2, 4, 8, 16, 32, 64, 128};

but compiler places it in RAM istead of ROM.


Abdul Malik Khan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]