On Thu, 22 Jan 2015, Philipp Klaus Krause wrote:
> On 21.01.2015 19:36, Georg Icking-Konert wrote: >> >> 1) how do I declare and implement the trap handler? According >> to http://sourceforge.net/p/sdcc/patches/224/ the keyword "__trap? is >> available via patch (2014-02-22). Is this already part of 3.4.0 (#8981; >> 2014-04-5) and, if yes, how do I use it? If not, is it planned for the >> next release which is due when? >> > > The patch has not been applied yet. It adds a new keyword, and I don't > feel familiar enough with all the backends at the moment do decide on > this. Maybe when looking at all the backends, there is a better way to > do it instead. If this is an important feature to stm8 users, I can > apply the patch (so it would be in the next release; if we come up with > a better way later, we can still change the syntax then). > > Philipp The patch seems reasonably safe to me. The __trap keyword would only be active for the stm8 backend. However, it would be similar to the __interrupt keyword in that it is expected to follow the function name rather than precede it; I don't know if that would be a problem or not. Erik ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user