Date: Fri, 3 Dec 2004 00:27:12 -0500 From: Parv <parv@pair.com> To: Matthias Buelow <mkb@mukappabeta.de> Cc: freebsd-questions@freebsd.org Subject: Re: How to edit file in single user mode Message-ID: <20041203052711.GA489@moo.holy.cow> In-Reply-To: <41AFCCDC.6000109@mukappabeta.de> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041203052711.GA489>