Slashdot Mirror


Diving Into GCC: OpenBSD and m88k

BSD Forums writes "This OnLamp article by Miod Vallat describes how the m88k-specific backend of the GNU C compiler, gcc, was fixed, from the discovery and analysis of the problems to the real fixing work. Since it started with almost zero gcc internals knowledge, it should be understandable by anyone able to read C code, and proves that diving into gcc is not as hard as one could imagine."

4 of 167 comments (clear)

  1. Re:OpenBSD and m88k by sl0ppy · · Score: 5, Insightful

    if not for the dead cpu, and the fact that gcc didn't work correctly, what motivation would they have had to do anymore more than a mild glance into gcc?

    it was because the cpu was dead, and things didn't work that the attempt was made, and hence the knowledge learned and passed on.

  2. Cool by Dysan2k · · Score: 3, Insightful

    These should be weekly /. regular-type posts. It's always cool to see someone's thoughts and methods for debugging some of the major tools/libraries that we use pretty regularly. Heck, this might even help someone find that obscure Athlon64 problem (not that one exists, just hypothetical). Remember, dead ARCH doesn't mean anything. The methodology of debugging here would work for any ARCH.

    Heck, even finding one of those bugs where you compile for i386 and it works, but compiling for i586 or i686 and it breaking would be kinda cool. I just learned a few things about GCC's build that I didn't know. New info for the day! Huzzah!

    --
    -What have you contributed lately?
  3. Re:Oh, catch the hell up. by Greg+Lindahl · · Score: 4, Insightful


    If I recall correctly, gcc3 "fixed" the m88k backend by deleting it, because it was unmaintained. So it's no surprise that this hobbyist has to use gcc2; if it makes him happy, there's no need to be so enthusiastic about explaining that gcc2 is dead -- and no need to use subjects like "Oh, catch the hell up."

  4. Re:Inaccessable by dmiller · · Score: 4, Insightful

    This article does belong in slashdot, but not the front page.

    Wow. I was overjoyed that SlashDot had finally posted something of technical interest and not another junk piece about how the RIAA are coming to get the freedom loving song-swappers.

    Don't worry, the drivel that you are used to will be back sooner than you can blink.