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

code placement in prog memory

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







code placement in prog memory
PostPosted: Mon May 14, 2007 7:22 am     Reply with quote

This may seem an obvious question. PLease indulge me. When you compile a c file, are functions placed in memory in the order that they are written in the source file? I had working code. I modified it and ended up adding a lot of functions between two functions in the source. the two functions in question are a receive and transmit function that are timing critical. Now my rx and tx is spotty whereas before it was very solid. i.e. a message was transmitted and response received with no misses. Because I didn't change these functions I'm wondering if it is possible that the message is transmitted and the response is missed because of the separation (in memory) of the recieve function and the xmit function.
If this is possible can it be fixed by simply moving the position of the functions in the source.
Using PCH 4.033 on a PIC 18F4685

Out of Ideas. Any help would be greatly appreciated.
Guest








PostPosted: Mon May 14, 2007 9:46 am     Reply with quote

corrupted project. I didn't get any errors when compiling. But when I created a new project with the same source files it compiled about 3000 bytes less. Anyway it all works now.
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