When comparing ed vs GCC, the Slant community recommends GCC for most people. In the question“What are the best text editors for UNIX-like systems?” GCC is ranked 23rd while ed is ranked 25th. The most important reason people chose GCC is:
GCC was first released in 1987 when it was called the GNU C Compiler, a couple of months after it was released it was extended to support C++ too. Nowadays it supports other languages than C or C++. Having been in use and constant development for more than 20 years it has reached a state of maturity and stability. The fact that it's so old also means that there are countless resources out there for people who want to use it.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Tight control over what's displayed, within terminal window
Pro ed is the standard text editor
As the standard text editor, ed
is available on multiple systems.
Pro Consistent UI
ed
has a consistent user interface and error reportage.
Pro Mature
GCC was first released in 1987 when it was called the GNU C Compiler, a couple of months after it was released it was extended to support C++ too. Nowadays it supports other languages than C or C++.
Having been in use and constant development for more than 20 years it has reached a state of maturity and stability. The fact that it's so old also means that there are countless resources out there for people who want to use it.
Pro Default on many systems
GCC is the default compiler on several systems. Most of the time people have it installed on their machine without even knowing it's there.
Pro Available for even the most obscure hardware
Since it's so old and very popular it has been ported to almost any architecture imaginable. This means that it's probably compatible with even the most obscure and unheard hardware.
Pro Very stable, excellent cross-platform use
Cons
Con Obsolete
There's absolutely no need for ed when you have sed and ex.
Con Not a lot of features
While extremely fast and simple, Ed is simply not for programming for a long time because it lacks a lot of important features. It should be used instead for quick edits.
Con Not a persistent UI
You can only view portions of a file through search or regular expression commands. You cannot scan or scroll through a file using the available screen real-estate.
It's not too dissimilar in use to command-line tools (such as grep and sed) for editing a file. In fact, both grep and sed are based on how interaction is performed with Ed.
