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

Using calls instead of jumps in function call

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



Joined: 27 Sep 2007
Posts: 4

View user's profile Send private message

Using calls instead of jumps in function call
PostPosted: Thu Sep 27, 2007 12:59 am     Reply with quote

Is there a way to disable compiler to generate jumps instead of calls? It messes up the disassembly reading.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Sep 27, 2007 1:09 am     Reply with quote

Most people want the compiler to generate efficient code and don't care if this makes the disassembly more difficult to read. If you want to sacrifce speed and memory usage for an easier to read disassembly than you will have to change the default settings:
- Set the optimizer to it's lowest level
- Declare all functions as #seperate
sapiens



Joined: 27 Sep 2007
Posts: 4

View user's profile Send private message

PostPosted: Tue Oct 02, 2007 4:52 am     Reply with quote

Thank you.

It would be good experience if CCS has a flag to turn on/off jump generation.. For instance, in optimization pane, a check box, instead of a slider that means nothing.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Tue Oct 02, 2007 5:20 am     Reply with quote

sapiens wrote:
It would be good experience if CCS has a flag to turn on/off jump generation.. For instance, in optimization pane, a check box, instead of a slider that means nothing.
A good suggestion, send this as a request to support@ccs-info.com. Without user's input the developers at CCS don't know how to improve the compiler. I've found CCS to be very responsive, several of my requests have been implemented.
Jay Miller
Guest







messd up listings
PostPosted: Tue Oct 02, 2007 6:14 am     Reply with quote

If you want to see them in numerical order,as coded in the chip, just go to DOS, use the SORT program and save (>) to a new file.
I've done this for years(uh,time flies) just to see what's going on.
Obviouly, newer 'sorting' methods are available, I just use what works for me.

Jay
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