public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@sandeen.net>
To: xfs@oss.sgi.com
Subject: on stack space....
Date: Fri, 01 Dec 2006 14:28:37 -0600	[thread overview]
Message-ID: <45709075.7080906@sandeen.net> (raw)

On the issue of stack space & where it goes in xfs...

<arjan> checkstack does not count function call arguments
<arjan> if you pass big-ish structures to functions things get skewed
quickly
<arjan> the caller pushes the arguments
<arjan> just before the 'call'

and also:

<arjan> btw one thing that helps modern gcc is to move variable
declarations into the inner most {} scope possible
<sandeen> does it really help?
<arjan> it'll allow it to share stack slots
<sandeen> older gccs that was actually -worse-
<arjan> yes
<sandeen> xfs was originally largely written that way
<sandeen> how recent?
<arjan> 4.1 and later have this fixed

lots of irix xfs was written this way IIRC, but I think things got moved
out.  Maybe it'd help to move them back in, for things like xfs_bmapi...

although it's a -penalty- for older gcc's still I think.

Anyway, just found that interesting, might help us get some of this
under control without a huge amount of refactoring...

-Eric

                 reply	other threads:[~2006-12-01 20:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45709075.7080906@sandeen.net \
    --to=sandeen@sandeen.net \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox