Hacker News new | ask | show | jobs
by dmytrish 3308 days ago
Technically, assembly is not required for measuring stack: just use regular C address of any local variable/function argument (minus an address of some local variable in main) to have some approximation of stack usage.
1 comments

True. But I was young, stupid and had just completed a course on assembler on that processor. Money well spent.