On Thu, Oct 18, 2007 at 05:23:46AM -0700, satish s nandihalli wrote:

>                       I have 2 separate complex Application modules which 
> need to be integrated and run. One is compiled with -fast option(say A) and 
> is doing well. The other application(say B) works well without -fast 
> compilation(and -fast optimization is not very required for it too).
>                    Now the problem is, when we integrate applications A and 
> B, we have a problem and the Application crashes irrespective of whether we 
> have used -fast option for application 'B'. 
> 
> My research done till now:- I ran CC -xdryrun, found out the -fast option 
> expantion on my system(for CC 5.7 version on ultra-sparc-3i). One change 
> which I found is to put -fast first and then all other options like xarch 
> etc. 
> 
> What else I could do and go around for solving the issue. I request for 
> general approaches and hints like:
> 1. Where(which context) we could alter the code?
> 2. Which are the critical standards without which -fast option could cause 
> problems?

You should direct this question to your Sun Studio support provider.
This is an OpenSolaris list, and it appears from your description that
you are compiling something which is not an OpenSolaris component.  If
that's not the case, please be aware that -fast should NEVER be used
to build any part of OpenSolaris (my personal opinion is that it
should never be used at all).

If you're looking for general debugging strategies, you'll want to
look at what -fast is expanding to on your particular machine, then
try removing each of those options one at a time until you find a
combination that works correctly.  Then you will want to file a bug
with your service provider describing the option (or combination of
options) which causes the failure.  It is also possible that this
combination of options is triggering bugs in your code rather than the
compiler.

-- 
Keith M Wesolowski              "Sir, we're surrounded!" 
FishWorks                       "Excellent; we can attack in any direction!" 
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to