CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Array of bits

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
javi.ar



Joined: 17 Feb 2006
Posts: 59
Location: Argentina

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

Array of bits
PostPosted: Wed Aug 16, 2006 7:42 am     Reply with quote

When I try to create an array of bits, which would be very efficient ( at least for me ) CCS warn me saying that is not allowed. Why?
I need to create 1 array of 42 bits and send them through output_but();
I saw here in the forum someone who created an array of byte and mention that is efficient ...
Any comments or suggestions , thanks a lot
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

View user's profile Send private message Send e-mail

PostPosted: Wed Aug 16, 2006 8:46 am     Reply with quote

Arrays of bits are supposed to be supported in the new V4 release but given the bug level it is exhibiting right now I wouldn't use it for production software.

You can write your own functions to get an array of bits out of an array of bytes. There will be performance penalties with all the mechaniations required to access individual bit indicies though.

Or you could try a union and structure. Still going to have some performance penalties.
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
javi.ar



Joined: 17 Feb 2006
Posts: 59
Location: Argentina

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

PostPosted: Wed Aug 16, 2006 9:23 am     Reply with quote

Thanks a lot ... as usual... very clear & helpful...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group