2009-04-24 04:31 AM
Does STVD suport static inline key to declare function?
2011-05-17 06:02 AM
Hello
''static inline'' key to declare function have error in STVD. I know GCC suport ''static inline'', Then STVD? Redards wolver2011-05-17 06:02 AM
Hi wolver,
I think this is related to the compiler: With cosmic compiler you can do this by the directive @inline With raisonnance compiler you can check the compiler option ''SPEED optimization'' and the compiler do this automatically Regards mozra2011-05-17 06:02 AM
2011-05-17 06:02 AM
Hi mozra
I use STM8 Cosmic, not raisonnance. But I should try to do it by the directive @inline ... Regards wolver2011-05-17 06:02 AM
Hi _luca
We have some short fuctions, such as following... If ''static inline'' can be used, The compiler obj has not push-pop stack. Regards wolver PS: some short fuctions... void ModifyCurSystemStatus(unsigned char current_status) { g_ucSystemCurStatus = current_status; } unsigned char GetCurSystemStatus(void) { return g_ucSystemCurStatus; } void load_timer3_value(void) { TIM3_CNTRH = 0x1E; TIM3_CNTRL = 0xFF; }