Jump to content
Sign in to follow this  
sludge

C2C++ and Multiple Register banks

Recommended Posts

Hi.

 

I get this message when I build the sample C2C++ code for a 16F673.

Warning:

Current target has multiple register banks but doesn't have a common (mapped) register area among register banks. This may cause incorrect code generation for C++ sources.

 

It then subsequently fails with General error.

 

I know what it means but how do I fix or avoid it?

 

Regrads,

 

SLJ

Share this post


Link to post
Share on other sites
Guest Pavel
I get this message when I build the sample C2C++ code for a 16F673.

Warning:

Current target has multiple register banks but doesn't have a common (mapped) register area among register banks. This may cause incorrect code generation for C++ sources.

 

It then subsequently fails with General error.

A good way to test if a warning is related to an error is to change the target to one that has common register area (like 16F877) and than compile the code.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

Hi.

 

It compiles just fine with other processors.

 

Does this imply I can't use C2C++ with dual register bank architectures?

 

Regards,

 

SLJ

Share this post


Link to post
Share on other sites
Guest Pavel
Does this imply I can't use C2C++ with dual register bank architectures?

You can use C2C++ to write C++ for targets with multiple register bank architecture except for the targets that don't have a common register area mapped to the same addresses in all register banks. There is no such restriction for C code using C2C++ compiler.

 

Regards,

Pavel

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...