From owner-freebsd-questions Mon May 15 22: 4:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from vicosa.dpi.ufv.br (vicosa.dpi.ufv.br [200.17.74.1]) by hub.freebsd.org (Postfix) with ESMTP id BEF7337B609 for ; Mon, 15 May 2000 22:04:09 -0700 (PDT) (envelope-from kernel@tdnet.com.br) Received: from tdnet.com.br (port12.tdnet.com.br [200.236.148.112]) by vicosa.dpi.ufv.br (AIX4.2/UCB 8.7/8.7) with ESMTP id CAA13776 for ; Tue, 16 May 2000 02:03:54 -0200 (GRNLNDDT) Message-ID: <3920AB51.22F54FCA@tdnet.com.br> Date: Tue, 16 May 2000 01:58:41 +0000 From: Gustavo Vieira Goncalves Coelho Rios X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 4.0-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: questions@freebsd.org Subject: what's the advantage... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I got surprised when i compiled two versions of the same program, and the one statically (-static flag) linked use less memory than that dynamically linked. How can one program that were static linked uses less memory that the same one done using the default linking? PS: I used ps -aux to see how much memory they did used. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message