Arm Community
Site
Search
User
Site
Search
User
Support forums
Architectures and Processors forum
bit addressable arrays in ARM9
Jump...
Cancel
State
Accepted Answer
+1
person also asked this
people also asked this
Locked
Locked
Replies
4 replies
Subscribers
349 subscribers
Views
5619 views
Users
0 members are here
Address
Arm9
Keil
Options
Share
More actions
Cancel
Related
How was your experience today?
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
sgupta sgupta
over 12 years ago
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..
Top replies
Jacob Bramley
over 12 years ago
+1
verified
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...
Parents
+1
Jacob Bramley
over 12 years ago
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.
Cancel
Vote up
+1
Vote down
Cancel
Reply
+1
Jacob Bramley
over 12 years ago
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.
Cancel
Vote up
+1
Vote down
Cancel
Children
No data