From owner-freebsd-hackers Fri Jul 12 9:14:34 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9F0E37B400 for ; Fri, 12 Jul 2002 09:14:31 -0700 (PDT) Received: from warlock.qualcomm.com (warlock.qualcomm.com [129.46.64.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 160BA43E42 for ; Fri, 12 Jul 2002 09:14:31 -0700 (PDT) (envelope-from mmitchel@qualcomm.com) Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by warlock.qualcomm.com (8.12.3/8.12.3/1.0) with ESMTP id g6CGEOHJ023614 for ; Fri, 12 Jul 2002 09:14:25 -0700 (PDT) Received: from fezik.qualcomm.com (fezik.qualcomm.com [129.46.65.103]) by ithilien.qualcomm.com (8.12.3/8.12.3/1.0) with ESMTP id g6CG6g3Z006195; Fri, 12 Jul 2002 09:06:42 -0700 (PDT) Received: from MMITCHEL2 (mmitchel-2.qualcomm.com [129.46.175.210]) by fezik.qualcomm.com (8.12.1/8.12.3/1.0) with SMTP id g6CG6ecT005538; Fri, 12 Jul 2002 09:06:40 -0700 (PDT) From: "Mike Mitchell" To: "Yar Tikhiy" , Subject: RE: Large variables on stack Date: Fri, 12 Jul 2002 09:06:40 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <20020712194809.A62768@comp.chem.msu.su> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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