Angel
5/26/2011 7:52:00 AM
On 2011-05-26, Duncan Bayne <dhgbayne@gmail.com> wrote:
> Hi All,
>
> Many moons ago I cut C code for a living, primarily while maintaining
> a POP3 server that supported a wide range of OSs (Linux, *BSD, HPUX,
> VMS ...).
Oh, what was the name of that server? I'd like to know...
> I'm planning to polish the rust off my C skills and learn a bit about
> language implementation by coding a simple FORTH in C.
>
> But I'm wondering how (or whether?) have things changed in the C world
> since 2000. When I think C, I think ...
I've been trying to shake the rust off of me for some time, last time I
did any real serious programming was back in college about 10 years ago.
> 1. comp.lang.c
I'm new here myself, joined a few months ago. Seems like a friendly and
helpful group most of the time.
Which reminds me, I should thank everyone who answered my query here.
Making my code more portable didn't only make my program work on Sparc
and PPC, it also made the coding as a whole a heck of a lot easier.
> 2. ANSI C wherever possible (but C89 as C99 isn't that widely
> supported)
I tend to stick to C99 as it has many good features that I missed in old
C. It really is an improvement IMHO.
> 3. `gcc -Wall -ansi -pedantic` in lieu of static analysis tools
I tend to use 'gcc -std=gnu99 -Wall -Werror' as I mostly develop for
Linux/GNU, but I avoid gcc-specific constructs where I can.
> 4. Emacs
Vi IMproved for me, but whatever works. The Linux kernel folks seem not
too fond of emacs' default layout for C though, just saying...
> 5. Ctags
Good stuff. ^^
> 6. Autoconf + make (and see point 2 for VMS, HP-UX etc. goodness)
I have to figure out autoconf someday...
--
"C provides a programmer with more than enough rope to hang himself.
C++ provides a firing squad, blindfold and last cigarette."
- seen in comp.lang.c