+ Post New Thread
Results 1 to 5 of 5
-
5th February 2019, 10:58 #1
- Join Date
- Feb 2013
- Location
- Chennai,India
- Posts
- 416
- Helped
- 38 / 38
- Points
- 2,807
- Level
- 12
How to calculate Stack size?
Hi All,
I want know how to calculate the stack size for the one program
Thanks to all
-
Advertisment
-
5th February 2019, 11:36 #2
- Join Date
- Nov 2006
- Location
- Brazil
- Posts
- 8,474
- Helped
- 1078 / 1078
- Points
- 28,507
- Level
- 41
- Blog Entries
- 6
Re: How to calculate Stack size?
Just see the compiler's log after build your program; at least with gcc it is possible, so I would guess there is the same feature with others.
--------------------------------------------------------------------------------------------------
Part of the world that you live in, You are the part that you're giving ( Renaissance )
-
Advertisment
-
5th February 2019, 13:09 #3
- Join Date
- Feb 2013
- Location
- Chennai,India
- Posts
- 416
- Helped
- 38 / 38
- Points
- 2,807
- Level
- 12
Re: How to calculate Stack size?
Hi thanks for the reply.
Is there possible to calculate after writing..?
-
Advertisment
-
5th February 2019, 13:40 #4
- Join Date
- Nov 2006
- Location
- Brazil
- Posts
- 8,474
- Helped
- 1078 / 1078
- Points
- 28,507
- Level
- 41
- Blog Entries
- 6
Re: How to calculate Stack size?
I would not say 'calculate' once you are in a program scope, but rather to say 'simulate'. You can do it by your own, manually taking note of the result of execution of each instruction on your code seeing how many Call(assembly) were made with no return, line by line, step by step; good luck.
--------------------------------------------------------------------------------------------------
Part of the world that you live in, You are the part that you're giving ( Renaissance )
1 members found this post helpful.
-
5th February 2019, 21:04 #5
- Join Date
- Oct 2011
- Location
- Tallinn, Estonia
- Posts
- 1,567
- Helped
- 358 / 358
- Points
- 8,870
- Level
- 22
Re: How to calculate Stack size?
Almost impossible :)
Love me or hate me. All infractions will be ignored.
+ Post New Thread
Please login