Cosmic Compiler @stackfunction qualifier. (STM8 LIN Driver)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-09-25 8:36 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-09-26 1:10 AM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-09-26 8:29 PM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-09-26 11:43 PM
Posted on September 27, 2013 at 08:43 Hello, yes, the @stack qualifier is simply ignored by the compiler. Regards.
