How to edit file in single user mode

Parv parv at pair.com
Thu Dec 2 21:27:13 PST 2004


in message <41AFCCDC.6000109 at 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

-- 



More information about the freebsd-questions mailing list