This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

bit addressable arrays in ARM9

Note: This was originally posted on 5th January 2009 at http://forums.arm.com

plz help me by telling hw we can use bit addressable arrays menas arrays that can be used bitwise..while programming through keil microvision , is there any option available??? plz help..
Parents
  • Note: This was originally posted on 5th January 2009 at http://forums.arm.com

    I don't know of any language that natively supports bit-addressable arrays, as they are only really useful in very specific circumstances. In most languages, you will need to use bit-fiddling logic to implement bit-addressable arrays. The code to implement them is fairly simple but often not worthwhile.

    Are you using the C language? If so, consider a solution using a combination of a simple array, bit shifts and some form of fixed-point arithmetic to act as the addressing mechanism. You'll need to write special functions or macros to act as accessors as C's array notation will not suffice by itself here.
Reply
  • Note: This was originally posted on 5th January 2009 at http://forums.arm.com

    I don't know of any language that natively supports bit-addressable arrays, as they are only really useful in very specific circumstances. In most languages, you will need to use bit-fiddling logic to implement bit-addressable arrays. The code to implement them is fairly simple but often not worthwhile.

    Are you using the C language? If so, consider a solution using a combination of a simple array, bit shifts and some form of fixed-point arithmetic to act as the addressing mechanism. You'll need to write special functions or macros to act as accessors as C's array notation will not suffice by itself here.
Children
No data