gcc.rst
changeset 805 eeb94c46c797
parent 352 2f4c25b2b493
child 813 34a39aae2618
equal deleted inserted replaced
804:8abdb87eede7 805:eeb94c46c797
    38   $ gcc -Wl,-Map=file.map <opts> <files>
    38   $ gcc -Wl,-Map=file.map <opts> <files>
    39 
    39 
    40 * Predefined macros.
    40 * Predefined macros.
    41 
    41 
    42   $ gcc -arch ppc -dM -E - < /dev/null | sort
    42   $ gcc -arch ppc -dM -E - < /dev/null | sort
       
    43 
       
    44 * Default search path.
       
    45 
       
    46   $ echo | gcc -v -x c -E -
       
    47 
       
    48   $ gcc -print-search-dirs
       
    49 install: ...
       
    50 programs: ...
       
    51 libraries: ...
       
    52 
       
    53   $ ld --verbose | grep SEARCH_DIR
       
    54 
       
    55 'LIBRARY_PATH' and 'LD_LIBRARY_PATH'
       
    56 
       
    57   $ cpp -Wp,-v
       
    58   $ cpp -Wp,-lang-c++,-v
       
    59   $ cpp -x c++ -Wp,-v