stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-443) [IBM XLC++] should avoid using -qinline or -Q in C++ code
Date Wed, 05 Dec 2007 18:43:43 GMT

    [ https://issues.apache.org/jira/browse/STDCXX-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548755
] 

Travis Vitek commented on STDCXX-443:
-------------------------------------

I've done 12d builds [one with -O and the other with -O -Q]. The library is smaller and executables
are _usually_ smaller with just -O [as expected because of less inlining]. Do we want to run
some sort of performance benchmark to decide what we should do, or do we just want to follow
the documentation?

     -O   -O -Q File Name
1826061 1841108 libstd12d.so.4.2.0
  31994   32286 search
  39317   39281 set_diff
  38813   38835 set_intr
  39945   39909 set_sym_diff
  39983   39947 set_union
  60225   60459 setex
  30370   30439 sieve
  24177   24147 slice
  27590   27856 slice_array
  50960   52112 sort
  77747   78013 spell
  63653   63970 stack
  24598   24620 stdexcept
  84276   85530 stocks
  33127   45083 stream_iterator
  26953   27219 string
  41160   41400 stringbuf
  40945   41211 strstream
  42568   42564 strstreambuf
  32063   32360 swap



> [IBM XLC++] should avoid using -qinline or -Q in C++ code
> ---------------------------------------------------------
>
>                 Key: STDCXX-443
>                 URL: https://issues.apache.org/jira/browse/STDCXX-443
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Configuration
>    Affects Versions: 4.1.3
>         Environment: IBM VisualAge C++ 6.0, 7.0, and XLC++ 8.0
>            Reporter: Martin Sebor
>            Assignee: Travis Vitek
>             Fix For: 4.2.1
>
>
> Quoting from the XLC++ 8.0 Compiler Reference, page 249 (-Q option):
> To maximize inlining: 
> *  for C programs, specify optimization (-O) and also specify the appropriate -Q options
for the C language.
> *  for C++ programs, specify optimization (-O) but do not specify the -Q option.
> We should review whether our use of -Q in optimized builds is called for.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message