Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2002 09:06:40 -0700
From:      "Mike Mitchell" <mmitchel@qualcomm.com>
To:        "Yar Tikhiy" <yar@comp.chem.msu.su>, <hackers@freebsd.org>
Subject:   RE: Large variables on stack
Message-ID:  <KAEBJMEAAINDJMODOPALCELDCPAA.mmitchel@qualcomm.com>
In-Reply-To: <20020712194809.A62768@comp.chem.msu.su>

next in thread | previous in thread | raw e-mail | index | archive | help
Good Morning,

I would suggest that since we have an VM implementation that works,
that the answer to your question is "it doesn't really matter." Now,
the information you received about making these items static or
heap allocated can be really beneficial when you are coding for
an embedded system and you have very finite resources that you
need to manually manage.

Mike Mitchell

-----Original Message-----
From: owner-freebsd-hackers@freebsd.org
[mailto:owner-freebsd-hackers@freebsd.org]On Behalf Of Yar Tikhiy
Sent: Friday, July 12, 2002 8:48 AM
To: hackers@freebsd.org
Subject: Large variables on stack


Hi there,

As I see, there are many spots in the FreeBSD userland sources where
multi-kilobyte automatic variables (e.g., string buffers) are used.
I've been taught that such variables would better be static or
allocated on heap.

So the following question comes to my mind:  To stay portable to a
reasonable degree, how large on-stack variables can be used?

-- 
Yar

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?KAEBJMEAAINDJMODOPALCELDCPAA.mmitchel>