??? 08/12/07 09:20 Read: times |
#143123 - SDCC function startup code Responding to: ???'s previous message |
In the DS390 version of SDCC there is a --stack-probe switch (it is very easy to implement it for other targets - in fact I wonder why it is not so) - which causes a call to a function with particular name, with the intention to perform a stack overflow check. Of course this means extra 2 bytes on the stack and certain slowdown - nothing is free.
SDCC, being open source, offers also an other opportunity, although at an expense of non-trivial programming effort: it could be possible to perform an exact stack counting. JW |