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 CCS Technical Support

Assembly code not generated !!!!!

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



Joined: 30 Sep 2012
Posts: 7

View user's profile Send private message

Assembly code not generated !!!!!
PostPosted: Thu Jul 25, 2013 2:36 am     Reply with quote

Hi all,

I am programming a PIC16F876A to read/write time/date to a DS1307, using the DS1307.C driver file.
But when I call the functions
ds1307_get_date(DD, MM, YYYY, DofW); //Get date
ds1307_get_time(Hours, Minutes, Seconds); //Get time in main() there is no corresponding assembly code generated in .lst file for that call
Pls help !!!!

Compiler version 4.114[/b]
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Jul 25, 2013 5:22 am     Reply with quote

We'd have to see your 'main' source code to properly debug.
Have you called ds1307_init ?

I do know the driver works fine,so the problem must be in 'main'.

hth
jay
vinay



Joined: 30 Sep 2012
Posts: 7

View user's profile Send private message

PostPosted: Fri Jul 26, 2013 5:12 am     Reply with quote

OOOPS !!!!!Embarassed
Looks like I was wrong, code was generated.
Found out by noticing the addressess of each assembly code especially when
ds1307_get_date(DD, MM, YYYY, DofW); //Get date
ds1307_get_time(Hours, Minutes, Seconds); //Get time are called.
But these two functions were becoming inline.
(Simply called the functions two to three times in main() and noticed the code memory consumed was increasing substantially).


@temtronic
thanks for your reply !!!!
Much appreciated !!!!
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