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 support@ccsinfo.com

16F88 - multiple variables with same name

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



Joined: 21 May 2004
Posts: 48
Location: Victoria, BC

View user's profile Send private message Visit poster's website

16F88 - multiple variables with same name
PostPosted: Mon Oct 03, 2005 5:43 pm     Reply with quote

Okay, this one is interesting.

We've had some periodic lockups on one of our boards. After looking over everything, I found that I had managed to do something so amazing that I had to share and get some help.

The short version is this: I defined the STATUS register as a #byte, then as an int1, then assigned values to it. I actually have a void function that is assigned to status at one point. I have the latest version of the CCS compiler (3.235)

The long version is thousands of lines of code. I'm working on a shorter version right now.

The question is, what in the [blank] is going to be assigned to status, and to which status is that value going to be assigned?

Thanks for your help.
_________________
In the 90's, I promised myself I'd never use a so-called "smiley icon". I hate what I've become. ;)
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Oct 03, 2005 6:29 pm     Reply with quote

Post a short test program that shows exactly that problem.
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Tue Oct 04, 2005 7:33 am     Reply with quote

Open the RAM symbol map to see your variables as used.
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