Re: [patch, avr-libc] Fix atexit.c

Bob Paddock <[email protected]>
Newsgroups gmane.comp.hardware.avr.gcc
Message-ID <CAOuGh88zPzji4axYPaT6+9qQpsVnUpCo=Ak4iP58rt0ie6AM2A@mail.gmail.com>
> Some time ago I thought about adding a new function attribute to avr-gcc
> that injects code at prologue / epilogue.

>That way an application could
> instrument particular functions with particular code.

> - instrumenting individual functions with specific for home-made profiling /
> performance measurement

In the end hopefully there is a way to get such profiling to work with gprof?

http://www.gnu.org/software/binutils/

I realize some type of custom I/O would be needed.

> - writing ISRs that need to manipulate stack,

Could use it to implement some safety checks as well; overflow checks,
should we really be in this function now etc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.