stack frame size on linux/solaris of a running application stack

Discussion in 'C Programming' started by Surinder Singh, Dec 18, 2007.

  1. Hi,

    what would be max stack frame size (of single frame) on Linux and
    Solaris/x86 of a running application stack?

    I am compiling c program with gcc on Suse 10 Linux kernel
    2.6.13-15.13-default i386 centrino processor.
    gcc version -- 4.0.2

    I have some 8KB structure (+ more data ) in a function and gcc with
    -fstack-check option gives warning about it.

    An obvious alternative is to malloc the data structure and pass on the
    pointer between functions.

    Thanks
    - Surinder

    --
    Posted via a free Usenet account from http://www.teranews.com
     
    Surinder Singh, Dec 18, 2007
    #1
    1. Advertising

  2. Surinder Singh

    Richard Bos Guest

    Surinder Singh <> wrote:

    > what would be max stack frame size (of single frame) on Linux and
    > Solaris/x86 of a running application stack?


    ISO C (which is the subject of this newsgroup) says nothing whatsoever
    about that. Ask this question in Linux and Solaris newsgroups. Do not be
    surprised if the answer is "it depends".

    Richard
     
    Richard Bos, Dec 20, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ted
    Replies:
    1
    Views:
    514
  2. ABC
    Replies:
    0
    Views:
    596
  3. sunny
    Replies:
    5
    Views:
    2,119
    CBFalconer
    Aug 17, 2006
  4. Sven
    Replies:
    2
    Views:
    5,107
    tragomaskhalos
    Nov 30, 2007
  5. itt ium
    Replies:
    5
    Views:
    518
    Asger-P
    Aug 9, 2011
Loading...

Share This Page