cancel
Showing results for 
Search instead for 
Did you mean: 

Cosmic Compiler @stackfunction qualifier. (STM8 LIN Driver)

colinh
Associate II
Posted on September 26, 2013 at 05:36

Hi.  Trying to find out what, if anything, the STM8 compiler does with the @stack function qualifier.  The STM8 LIN Driver uses @stack quite a lot, however it is not documented in the Cosmic STM8 User Manual.

Thanks

Colin

#cosmic-lin-driver
3 REPLIES 3
luca239955_stm1_st
Senior II
Posted on September 26, 2013 at 10:10

Hi,

@stack means that the function uses the actual stack, and not the simulated one.

This was meaningful in the past (st7), but it's irrelevant for stm8, where all functions use the real stack.

Regards.

colinh
Associate II
Posted on September 27, 2013 at 05:29

Thanks for your reply.  Does the compiler ignore the qualifier?  I ask this because we would prefer not to modify the ST LIN Driver.  Modifying the supplied driver becomes a maintainence (and hence a quality assurance) issue.

 

luca239955_stm1_st
Senior II
Posted on September 27, 2013 at 08:43

Hello,

yes, the @stack qualifier is simply ignored by the compiler.

Regards.