Skip to main content
Visitor II
September 26, 2013
Question

Cosmic Compiler @stackfunction qualifier. (STM8 LIN Driver)

  • September 26, 2013
  • 3 replies
  • 970 views
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
    This topic has been closed for replies.

    3 replies

    Visitor II
    September 26, 2013
    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.

    colinhAuthor
    Visitor II
    September 27, 2013
    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.

     

    Visitor II
    September 27, 2013
    Posted on September 27, 2013 at 08:43

    Hello,

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

    Regards.