"Fossies" - the Fresh Open Source Software Archive

Member "ncc-2.8/doc/hacking.GCC" (14 Sep 2006, 939 Bytes) of package /linux/privat/old/ncc-2.8.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 Hacking gcc (almost died from recursion)
    2 ----------------------------------------
    3 
    4 Analysing gcc works properly by replacing the variables
    5 
    6 	CC = gcc
    7 	AR = ar
    8 to
    9 	CC = ncc -ncgcc -ncld -ncfabs
   10 	AR = nccar
   11 
   12 In the Makefile in the objdir, near the comment
   13 
   14 	---------------------------------------------
   15 	Programs producing files for the HOST machine
   16 	---------------------------------------------
   17 
   18 HOWEVER, this does not work right away. 
   19 What I did was.
   20 
   21 - first compile gcc with "make bootstrap" with the
   22   original CC and AR values (without ncc)
   23 
   24 - then edit the Makefile and add ncc/nccar
   25 
   26 - then go to the gcc source inside the gcc/ directory
   27   and do "touch *.h"
   28 
   29 - then go to the objdir and redo "make"
   30 
   31 That seemed to work but it takes ages. The problem was
   32 libiberty. If anyone improves that, send mail.
   33 
   34 nccnav prev-gcc/cc1.nccout
   35 
   36 	366	Filez
   37 	13132	functions
   38 	3442	global variables
   39 	773	structs
   40 	4424	members
   41 	422857	Total links