Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/19/02 18:17
Read: times


 
#19966 - RE: 1 bit operation in C - Andy
Please read the whole of my post; I went on to say, "If you're lucky, your compiler and/or optimiser might be smart enough to spot what you're trying to do, and use the bit-addressing instructions."

Yes, Keil C51 can be smart enough to do this, but it is under no obligation to do so, and I wouldn't like to guarantee it - not even if the President said it would.
It could change between versions.

If single-bit operations are specifically required, then the compiler's single-bit extensions (if available) must be used.

"AND Nobody post that the SRC modifier allows the use of bit addressable instructions!"

Of course it does - cos it lets you use Assembler!! ;-)


List of 13 messages in thread
TopicAuthorDate
1 bit operation in C            01/01/70 00:00      
RE: 1 bit operation in C            01/01/70 00:00      
RE: 1 bit operation in C            01/01/70 00:00      
RE: 1 bit operation in C - Hosman            01/01/70 00:00      
RE: 1 bit operation in C - Aman            01/01/70 00:00      
RE: 1 bit operation in C            01/01/70 00:00      
RE: 1 bit operation in C - Andy            01/01/70 00:00      
RE: 1 bit operation in C - Andy            01/01/70 00:00      
RE: 1 bit operation in C - Andy            01/01/70 00:00      
RE: 1 bit operation in C - Andy            01/01/70 00:00      
RE: 1 bit operation in C - Andy            01/01/70 00:00      
RE: 1 bit operation in C - Andy            01/01/70 00:00      
RE: 1 bit operation in C - Andy            01/01/70 00:00      

Back to Subject List