View previous topic :: View next topic |
Author |
Message |
small_chick
Joined: 17 Jul 2012 Posts: 53
|
Built-in functions of CCS ??? |
Posted: Wed Jul 18, 2012 8:50 pm |
|
|
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
|
|
Posted: Wed Jul 18, 2012 9:46 pm |
|
|
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
|
|
Posted: Thu Jul 19, 2012 12:13 am |
|
|
thanks! I'll try it! |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Thu Jul 19, 2012 1:02 am |
|
|
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
|
|
Posted: Thu Jul 19, 2012 1:15 am |
|
|
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
|
|
Posted: Thu Jul 19, 2012 2:48 am |
|
|
thanks for your help! |
|
|
Gabriel
Joined: 03 Aug 2009 Posts: 1067 Location: Panama
|
|
Posted: Thu Jul 19, 2012 6:27 am |
|
|
.
.
.
.
.
.
.
"Close Enough"... _________________ CCS PCM 5.078 & CCS PCH 5.093 |
|
|
|