LWN.net Logo

Advertisement

Front, Kernel, Security, Distributions, Development. See your byline here on LWN.net.

Advertise here

This is depressing

This is depressing

Posted Jun 25, 2008 8:53 UTC (Wed) by rwmj (guest, #5474)
In reply to: This is depressing by nix
Parent article: Converting GCC to C++

Yeah, but GCC-in-ocaml would be a big job, basically a complete rewrite.

Sure, I absolutely wasn't suggesting this, just moaning that people aren't talking about good languages (in general).

What might work though would be to implement some sort of macro system in C. NOT C++ templates (which are a completely on-crack "macro" / "metaprogramming" system), but something designed along the lines of defmacro or camlp4.

With such a macro system, small parts of gcc could be rewritten for brevity and code consistency. Basically whenever you have a common pattern of repeated code, you try to abstract it into a useful general-purpose macro (if appropriate).

Rich.


(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds