Thanks for your replies. I leave this for the moment but stack optimisation will be a very nice feature :-)
2017-01-09 14:39 GMT+01:00 Oleg Hahm <oliver.h...@inria.fr>: > Hi! > > On Mon, Jan 09, 2017 at 02:01:04PM +0100, Baptiste Clenet wrote: >> In order to optimize the statcksize of a thread, I would like to know >> when the thread uses the maximum of its stack (maximum can be 3/4 of >> the stack for instance) >> How can I find this "time"? > > Sounds like a case for -finstrument-functions (man gcc). > > Cheers, > Oleg > -- > die_if_kernel("Kernel gets FloatingPenguinUnit disabled trap", regs); > linux-2.2.16/arch/sparc/kernel/traps.c > > _______________________________________________ > devel mailing list > devel@riot-os.org > https://lists.riot-os.org/mailman/listinfo/devel > -- Baptiste _______________________________________________ devel mailing list devel@riot-os.org https://lists.riot-os.org/mailman/listinfo/devel