Hi Mike, It was without doubt a previous compiler version but I don't recall any recent compiler changes that would have influenced this.
The result do vary depending on the functions you call. At the time I spend quite some time balancing code and save two stack levels ( which is lot on an 16f chip). I used the sample files fot this, so the optimisations might be slightly biased to those. IMHO it is a bad idea to forbid the use of pragma inline statements in libraries. Its use would probably be limited to internal function or very small api functions. In this particular case my message is: change the lib if there is a serious is, but be carefull. Use at least the samples to verify the effect and avoid any increase of stack useage. Joep. Op zondag 30 december 2012 schreef Mike K ([email protected]) het volgende: > Hi Joep, > > Perhaps this was an issue with a previous version of the compiler? The > program that I'm using, that prompted this thread, uses the same amount of > stack whether with or without the "inline"s. > > Mike > > On Sunday, December 30, 2012 3:14:04 PM UTC-5, Joep wrote: >> >> Hi guys, >> >> Just saw this tread today and did not have a chance to study it in detail. >> So just fyi: i have fiddled with inline in the lcd lib to reduce stack >> useage, which was so high the lib was hardly usable on an 16f chip. >> Speed is not an issue; it is a balance between flash, ram and stack use. >> >> Joep. >> >> -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/jallib/-/D2UI8LVZiBgJ. > To post to this group, send email to > [email protected]<javascript:_e({}, 'cvml', '[email protected]');> > . > To unsubscribe from this group, send email to > [email protected] <javascript:_e({}, 'cvml', > 'jallib%[email protected]');>. > For more options, visit this group at > http://groups.google.com/group/jallib?hl=en. > -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
