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 support@ccsinfo.com

standard_io vs fixed_io

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



Joined: 18 Nov 2013
Posts: 159

View user's profile Send private message

standard_io vs fixed_io
PostPosted: Tue Jun 04, 2019 10:12 am     Reply with quote

I thought fixed_io was supposed to save ram and be faster than standard, but that does not seem to be the case. Is there something I'm missing?
Code:

.................... #use STANDARD_IO( C )
....................   output_high( PIN_C2 );
03100:  BCF    F94.2
03102:  BSF    F8B.2
....................   output_low( PIN_C2 );
03104:  BCF    F94.2
03106:  BCF    F8B.2
.................... #use FIXED_IO( C_outputs=PIN_C2 )
....................   output_low( PIN_C2 );
03108:  MOVLW  FB
0310A:  MOVWF  F94
0310C:  BCF    F8B.2
....................   output_high( PIN_C2 );
0310E:  MOVLW  FB
03110:  MOVWF  F94
03112:  BSF    F8B.2
.................... 
Ttelmah



Joined: 11 Mar 2010
Posts: 19245

View user's profile Send private message

PostPosted: Tue Jun 04, 2019 10:34 am     Reply with quote

No.

Fast_io saves ROM, and is quicker.
Fixed_io does neither.
All it does is ensure the IO is fixed (doesn't change).
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