On Monday 21 April 2003 09:36 am, Mccauley, Daniel H wrote: > > > I see #SEPARATE and #INLINE directives used for functions in > > > various example C programs i see on the internet. > > > Could someone explain why these are used and what they actually > > > do??? > > > > These are non-standard directives that tell the compiler to > > either ensure that the function is called normally (#separate) or > > expanded inline every time it's called (#inline). > > > > The compiler has a particular optimization that will > > automatically inline functions below a certain size (possibly > > with other limitations); this is why you need #separate (to put > > things back to the default situation). > > Yes, i do realize that, but what exactly does that mean in layman's > terms?? And what are the benefits / > disadvantages for both? When would you use one over the other? Advantages of SEPARATE: * smaller code (only one copy) * can put breakpoint in it (only one copy) Advantages of INLINE: * faster (omits CALL/RETURN) -- Ned Konz http://bike-nomad.com GPG key ID: BEEA7EFE -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu