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

Search found 6 matches
CCS Forum Index
Author Message
  Topic: CCS Function to asm optimization
x34678

Replies: 13
Views: 15745

PostForum: General CCS C Discussion   Posted: Sat May 19, 2012 11:46 pm   Subject: CCS Function to asm optimization
My question is why go to all the hassle? You have to deal with paging and
other such issues.

For a $5 PIC 18F with more memory you can save dozens, if not hundreds
of hours of development/deb ...
  Topic: CCS Function to asm optimization
x34678

Replies: 13
Views: 15745

PostForum: General CCS C Discussion   Posted: Sat May 19, 2012 11:43 pm   Subject: CCS Function to asm optimization
Jeremiah is right, #separate does prevent inlining.

The CCS manual explains, at length, to pros and cons of #inline against #separate.

Having been advised, and before abandoning 'C', did you try ...
  Topic: CCS Function to asm optimization
x34678

Replies: 13
Views: 15745

PostForum: General CCS C Discussion   Posted: Sat May 19, 2012 1:38 am   Subject: conclusion
I found some solutions optimizing memory organization (and distribution into the pages) by dividing some functions in subfunctions (but the stack is almost to the limit -> 7 worst case).

My conc ...
  Topic: CCS Function to asm optimization
x34678

Replies: 13
Views: 15745

PostForum: General CCS C Discussion   Posted: Sat May 19, 2012 1:30 am   Subject: CCS Function to asm optimization
PIC: 16F887A

There is no PIC with this part number.


When I compile my code, there are some functions (from my C code)
which appear more than once in assembly code.

Edit your posted code ...
  Topic: CCS Function to asm optimization
x34678

Replies: 13
Views: 15745

PostForum: General CCS C Discussion   Posted: Sat May 19, 2012 1:22 am   Subject: CCS Function to asm optimization
My question is why go to all the hassle? You have to deal with paging and
other such issues.

For a $5 PIC 18F with more memory you can save dozens, if not hundreds
of hours of development/deb ...
  Topic: CCS Function to asm optimization
x34678

Replies: 13
Views: 15745

PostForum: General CCS C Discussion   Posted: Fri May 18, 2012 10:51 am   Subject: CCS Function to asm optimization
Hi All,
i'm developing in C for my actual project and ROM space is critical because the program which I'm programming is really big.

So, here is the fact:
PIC: 16F887A
CCS Version: 4.120
Xtal: ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group