Jump to content
Sign in to follow this  
Guest JoeB

Flag bits

Recommended Posts

Guest JoeB

Hi,

 

CC5x (dare i mention it?!) has a data type called "BIT"

 

Using this, you can:

 

declare a 'bit' flag:

BIT label_1;

 

set / clear a bit:

label_1 = TRUE;  // set
label_1 = FALSE; // clear

 

check a bit:

if( ! label_1 ) // if label_1 is cleared
   do_this(...);

 

and others, e.g. switch(label_1), while(label_1).. etc...

 

Are you planning to implement this??

It is SOOO much easier to use than your set_bit() clear_bit() functions...

 

Joe

#

Share this post


Link to post
Share on other sites
Guest Pavel

The 'bit' data type as well as other improvements will be

implemented in my next generation C compiler.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

I'm really not sure about this direct register code.

 

I think it makes neat code but is actually departing from the standard 'C' language, and turning to a 'C' like language instead.

 

This is starting to look like C++ operator overloading with function inlining.

 

Its neat but is it the right thing to do?

Share this post


Link to post
Share on other sites
Guest JoeB

how much will the next generation compiler cost, and when will it be released?

 

My project is due to start in 3 weeks time. I must have decided on a compiler by this time and cannot be changing half way through -- way too much hassal.

 

Can we upgrade for free or will it be classed as a new product?

 

What enhancments will it have?

 

joe

#

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...