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

FULL ANSI C

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







FULL ANSI C
PostPosted: Sat Mar 18, 2006 10:14 am     Reply with quote

Please help on this topics :

1.) Can i write full ANSI C program in CCS C compiler

2.) Can i skip ready made functions and and use standard ANSI C approach.

3.) Can i port my CCS code ( written fully in ANSI C ) to other MCU ?
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Sat Mar 18, 2006 1:49 pm     Reply with quote

1) No, this is not an ANSI C compiler, it predates ANSI C. It is close to a Kernighan & Ritchie C compiler but it has some changes to fit on small processors. For example the Int is 8 bits, which follows the original K&R idea that the Int should be the natural data width of the processor. Using 16 bit math would introduce too much overhead for common use.

2) You can skip the ready made functions and use C or assembler. People do it all the time. But the strong point of CCS is the ready made functions.

3) Few other MCU C compilers are ANSI compliant either. So porting code from one compiler to another is generally a pain.
_________________
The search for better is endless. Instead simply find very good and get the job done.
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