From owner-freebsd-questions@FreeBSD.ORG Fri Dec 3 05:27:12 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED92E16A4CE for ; Fri, 3 Dec 2004 05:27:12 +0000 (GMT) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 840EA43D39 for ; Fri, 3 Dec 2004 05:27:12 +0000 (GMT) (envelope-from parv@chvlva.adelphia.net) Received: from default.chvlva.adelphia.net ([69.160.67.225]) by mta9.adelphia.netESMTP <20041203052711.LNTU14438.mta9.adelphia.net@default.chvlva.adelphia.net>; Fri, 3 Dec 2004 00:27:11 -0500 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id 49F7B56AA; Fri, 3 Dec 2004 00:27:12 -0500 (EST) Date: Fri, 3 Dec 2004 00:27:12 -0500 From: Parv To: Matthias Buelow Message-ID: <20041203052711.GA489@moo.holy.cow> Mail-Followup-To: Matthias Buelow , f-q@chvlva.adelphia.net, Trey Sizemore , freebsd-questions@freebsd.org References: <41AA5AFC.2090902@fastmail.fm> <20041128201638.N66254@cactus.fi.uba.ar> <41AA663F.2030106@fastmail.fm> <41AE5BB9.1000902@daleco.biz> <20041202032751.GA552@moo.holy.cow> <41AFCCDC.6000109@mukappabeta.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41AFCCDC.6000109@mukappabeta.de> cc: Trey Sizemore cc: f-q@chvlva.adelphia.net cc: freebsd-questions@freebsd.org Subject: Re: How to edit file in single user mode X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2004 05:27:13 -0000 in message <41AFCCDC.6000109@mukappabeta.de>, wrote Matthias Buelow thusly... > > Parv wrote: > > >...my old C++ class editor project. My version of the editor -- > >ed like commands, no regex support, menu driven -- statically > >compiled w/ GCC 3.4 & stripped takes 403 kB (-O1) or 389 kB > >(-O2). (It has yet to go through a thorough review though. > >Anybody care to take a look?) > > That's pretty heavy, Well there are some factors: my first attempt of the editor w/ linked list as the data structure, and C++ itself. > considering that without REs it would be roughly equivalent to the > dreaded EDLIN.COM, which came in at around 7K. ;) 7 kB? Dang, that's smaller than ed(1), 143 kB, itself. ed(1) seems better and better (if EDLIN.COM equivalent is unavailable for Unix). - Anubhav --