From owner-freebsd-arch@FreeBSD.ORG Sat Mar 27 10:57:03 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25E4F16A4CE for ; Sat, 27 Mar 2004 10:57:03 -0800 (PST) Received: from smtp2.server.rpi.edu (smtp2.server.rpi.edu [128.113.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2F8843D1D for ; Sat, 27 Mar 2004 10:57:02 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp2.server.rpi.edu (8.12.8/8.12.8) with ESMTP id i2RIv1LI008921; Sat, 27 Mar 2004 13:57:02 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <1c0901c413e8$04a466c0$7890a8c0@dyndns.org> References: <20040325070120.GA67497@VARK.homeunix.com> <1a9c01c41359$b3da45e0$7890a8c0@dyndns.org> <1c0901c413e8$04a466c0$7890a8c0@dyndns.org> Date: Sat, 27 Mar 2004 13:57:00 -0500 To: "Cyrille Lefevre" From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: CanIt (www . canit . ca) cc: arch@freebsd.org Subject: Re: posix ps (was Re: Adding `pgrep' and `pkill' to /usr/bin) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2004 18:57:03 -0000 At 11:41 AM +0100 3/27/04, Cyrille Lefevre wrote: >"Garance A Drosihn" wrote: >as I read your proposed changes, we could merge them w/o >any problem. well, in fact, I already merge some of them >(the or part instead of and). > >original ps : 26668 (no posix compliant) >yours (gad) : 31072 (partly posix compliant) >mine (cyrille) : 35684 (fully posix compliant) Arg. It looks like I must have added another few instructions somewhere, and triggered the same size-increase that I talked about in the "Adventures with gcc: code vs object-code size" thread on the freebsd-hackers. In that case, adding 40 bytes of new instructions to one routine in ps.o caused /bin/ps to jump by 3940 bytes. As long as I had avoided whatever that threshold was, I was able to keep the size down around 27000 bytes. And that was for a version which *included* the -R, -s, and new -g options. Man that's annoying, I had been doing so good with it... -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu