+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Advanced Member level 1
    Points: 2,828, Level: 12

    Join Date
    Feb 2013
    Location
    Chennai,India
    Posts
    416
    Helped
    38 / 38
    Points
    2,828
    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

    •   AltAdvertisment

        
       

  2. #2
    Super Moderator
    Points: 28,814, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,587
    Helped
    1087 / 1087
    Points
    28,814
    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 )



    •   AltAdvertisment

        
       

  3. #3
    Advanced Member level 1
    Points: 2,828, Level: 12

    Join Date
    Feb 2013
    Location
    Chennai,India
    Posts
    416
    Helped
    38 / 38
    Points
    2,828
    Level
    12

    Re: How to calculate Stack size?

    Hi thanks for the reply.

    Is there possible to calculate after writing..?



    •   AltAdvertisment

        
       

  4. #4
    Super Moderator
    Points: 28,814, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,587
    Helped
    1087 / 1087
    Points
    28,814
    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.

  5. #5
    Advanced Member level 5
    Points: 8,980, Level: 22
    Achievements:
    7 years registered
    Easyrider83's Avatar
    Join Date
    Oct 2011
    Location
    Tallinn, Estonia
    Posts
    1,583
    Helped
    362 / 362
    Points
    8,980
    Level
    22

    Re: How to calculate Stack size?

    Almost impossible :)
    Love me or hate me. All infractions will be ignored.



--[[ ]]--