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

Built-in functions of CCS ???

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



Joined: 17 Jul 2012
Posts: 53

View user's profile Send private message

Built-in functions of CCS ???
PostPosted: Wed Jul 18, 2012 8:50 pm     Reply with quote

In my opinion, built-in functions of CCS are really convenient but It'll be better if we can see code that CCS company has programmed because it's related to hardware. Thus we can understand more about the connection between hardware and programming!
However, I don't know how to view those codes. I hope someone can help me!!! Thanks!
Gabriel



Joined: 03 Aug 2009
Posts: 1067
Location: Panama

View user's profile Send private message

PostPosted: Wed Jul 18, 2012 9:46 pm     Reply with quote

Check out the LST file, it shows what the compiler is doing...its in ASM though but side by side with your C code.

G.
_________________
CCS PCM 5.078 & CCS PCH 5.093
small_chick



Joined: 17 Jul 2012
Posts: 53

View user's profile Send private message

PostPosted: Thu Jul 19, 2012 12:13 am     Reply with quote

thanks! I'll try it! Very Happy
Ttelmah



Joined: 11 Mar 2010
Posts: 19484

View user's profile Send private message

PostPosted: Thu Jul 19, 2012 1:02 am     Reply with quote

At the top of the include file for your processor (about the second line down), you will find the line #nolist. Rem this out, and save the processor file. If you don't do this, the compiler 'hides' the listings for things line the time delays, maths libraries etc.. This is done to make it easier to see the code that you are generating (the compiler stuff makes the lst file a _lot_ larger....). but to get into the real core of what is going on, you need this disabled.....

Best Wishes
RF_Developer



Joined: 07 Feb 2011
Posts: 839

View user's profile Send private message

PostPosted: Thu Jul 19, 2012 1:15 am     Reply with quote

The code is not C, and there is no library as such. The code that is generated varies depending on the circumstances and from PIC to PIC.

There is no reason why people can not write their own code to perform these functions. CCS C allows full access to the hardware if there is some specific requirement, or for learning and educational purposes.

For commercial programming, the productivity gains provided by the built-in functions, along with significant improvements in portability, are a massive plus for CCS C. They simplify and speed up the development process allowing more reliable code to get to the market faster and with less effort, allowing serious developers to concentrate on their application code rather than the nuts and bolts issues. The requirements of professional user is somewhat different then students and hobbyist users. As a professional user I am more than happy with support code provided by CCS C.

RF Developer
small_chick



Joined: 17 Jul 2012
Posts: 53

View user's profile Send private message

PostPosted: Thu Jul 19, 2012 2:48 am     Reply with quote

thanks for your help!
Gabriel



Joined: 03 Aug 2009
Posts: 1067
Location: Panama

View user's profile Send private message

PostPosted: Thu Jul 19, 2012 6:27 am     Reply with quote

Quote:
The code is not C

.
.
.
.
.
.
.
"Close Enough"...
_________________
CCS PCM 5.078 & CCS PCH 5.093
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