This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -frepo
- From: "Ilja Golshtein" <ilejn at yandex dot ru>
- To: gcc-help at gcc dot gnu dot org
- Cc: nathan at codesourcery dot com
- Date: Wed, 14 Dec 2005 09:59:04 +0300 (MSK)
- Subject: Re: -frepo
- Reply-to: ilejn at yandex dot ru
Hello!
>> 1. I use gcc not g++ to link my executables. Investigating
>> what happens behind the scene, I see collect's command line
>> is pretty much the same for g++ ang gcc.
>> The difference ig gcc does not use repo files.
>> What is the trick?
>
>what are you trying to do? Are you linking c++ object files?
>If so, use g++.
I use gcc driver not g++ since I don't use
native STL library. Is it possible
to avoid linking against libstdc++
in case of g++?
Of course, it is about linkage only.
After all, I still have the question about
the collect command line. Is is possible to
explicitly switch on repo processing?
>> 2. My executable depends on files in several directories.
>> Full path is specified for each .o file.
>> Should I do anything special to specify repo files search path?
>>
>> 3. Does it make sence (e.g. from compilation speed and executable
>> size) to use -frepo? gcc 4.0.2 suggests it does ...
>
>do you want to use the -frepo instantiaion model or not? Refere to the
>documentation about instantiation models for an explanation.
I am not sure I clearly understand what
"-frepo instantiaion model" means.
Explanations are higly appreciated.
The only documentation I am aware of is
http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcc/Template-Instantiation.html#Template-Instantiation
Can you suggest anything more comprehensive?
Thanks a lot for response!
--
Best regards
Ilja Golshtein