Modifying the GNU GCC 2.95 compiler

This is a discussion on Modifying the GNU GCC 2.95 compiler within the Linux Programming forums, part of the Platform Specific Boards category; Hi guys ! As part of a task at my uni I would have to modify given parts of the ...

  1. #1
    shp
    shp is offline
    Registered User
    Join Date
    Mar 2004
    Posts
    2

    Modifying the GNU GCC 2.95 compiler

    Hi guys !
    As part of a task at my uni I would have to modify given parts of the gnu gcc compiler. My problem is that it takes 8 minutes on my machine (p1200, 256m) to "make bootstrap" the whole compiler. I guess it makes many files which aren't necessary to compile each time. Unfortunately I've just started trying to understand the internal structure of gcc 2.95, so I have no idea which files could be left out of the makefile. Obviously it is impossible to debug any code I write into the compiler this way (1:writing, 2:waiting 8 minutes, 3:trying to figure out what the hell is wrong, 4:goto 1) I wrote a letter to the gnu guys some days ago, because I figured that while they are writing the gcc, they use some kind of a special compiling method so that it takes seconds to have it finished. But I suppose they can't answer every letter they get, at least haven't answered until now. Any help is appreciated. Thank you in advance.

  2. #2
    Me -=SoKrA=-'s Avatar
    Join Date
    Oct 2002
    Location
    Europe
    Posts
    448
    make will only tell gcc to compile the files that have been modified. The only way it could be faster is by not doing a make clean, but it you're already just compiling the changed source, I can't think of any way it could be sped up.

    If you have another computer that has cycles to spare, you could use distcc to speed it up a bit, although it may actually be slower, depending on your particular case.
    SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
    I say what I say, I mean what I mean.
    IDE: emacs + make + gcc and proud of it.

  3. #3
    shp
    shp is offline
    Registered User
    Join Date
    Mar 2004
    Posts
    2
    Originally posted by -=SoKrA=-
    make will only tell gcc to compile the files that have been modified. The only way it could be faster is by not doing a make clean, but it you're already just compiling the changed source, I can't think of any way it could be sped up.

    If you have another computer that has cycles to spare, you could use distcc to speed it up a bit, although it may actually be slower, depending on your particular case.
    Thank you, the problem was I always did "make bootstrap" instead of "make".... For some reason I thought it wouldn't do the linking... I can do stupid stuff, but now I've outdone myself.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 10:13 AM
  2. GNU Public Domain Compiler
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 08-22-2002, 07:55 AM
  3. gcc 3.1
    By itld in forum C++ Programming
    Replies: 1
    Last Post: 05-18-2002, 05:00 AM
  4. gcc compiler?
    By BR7 in forum C Programming
    Replies: 15
    Last Post: 04-26-2002, 10:26 AM
  5. GNU C++ compiler error
    By knight543 in forum C++ Programming
    Replies: 4
    Last Post: 02-08-2002, 07:29 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21