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

#inline

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







#inline
PostPosted: Fri May 26, 2006 12:12 pm     Reply with quote

Hi,
I am wondering in what cases the #inline directive is effective in what case it is not. Is there is maximum number of instruction to respect if we want an inline function to really be inline?
I timed (w/ oscilloscope) two version of a function, one really inlined and the other one specified inline with #inline, and the difference shows that the inline is not taking into account.
Thank you.
Charles.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri May 26, 2006 12:30 pm     Reply with quote

Look at the .LST file to see the difference. The program will go to
to the non-inlined function with a CALL or a GOTO, and returns with
a RETURN or a GOTO (respectively). The amount of time required to
do this is very little. You might not notice it on your oscilloscope.
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