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

Include C assembly and machine code in a listing file

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



Joined: 24 Nov 2008
Posts: 2

View user's profile Send private message

Include C assembly and machine code in a listing file
PostPosted: Thu Oct 15, 2009 11:54 am     Reply with quote

I am picking up a older project that used a CCS compiler and a PIC micro. The timing on the interrupts is so critical that the original writer had to count cycles every time the code changed. I have had to make a small change the the main loop and want to verify that the interrupt timing has not changed. I also do not want to count cycles.

I added one case to a switch statement. The original code.
Code:

case VOLT :
    set_trip_points();
    break;

The new code has an extra case.
Code:

case VOLT :
case FSCONT :
    set_trip_points();
    break;


When I compared the list files they match except for the date code and file data at the start of the listing and this segment.

The original list file
Code:

1657:  GOTO   67D
....................         case VOLT :
....................             set_trip_points();
1658:  CALL   000
....................             break;

The new list file
1657:  GOTO   67D
....................         case VOLT :
....................         case FSCONT :
....................             set_trip_points();
1658:  CALL   000
....................             break;

There is no assembly code changes.

There is a one byte change between hex files. Is there any way to get the assembly code listing with the generate machine code?
Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Oct 15, 2009 12:36 pm     Reply with quote

Post a short little test program that demonstrates the problem.
Strip your main program down to a very few lines and post it.
It must be able to compile without errors. It must have the
#include, #fuses, #use delay(), main(), and all necessary variable
and constant declarations. Try to keep it under 25 lines, total.

Also post your compiler version.
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