| Title: | USG buildhelp questions/answers |
| Moderator: | SMURF::FILTER |
| Created: | Mon Apr 26 1993 |
| Last Modified: | Mon Jan 20 1997 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 2763 |
| Total number of notes: | 5802 |
Delivery-Date: Thu, 29 Apr 93 14:56:34 -0400
Return-Path: vandyck
Received: by flume.zk3.dec.com (5.65/DEC-USSG-ZK3-ULTRIX-09/27/91);
id AA24810; Thu, 29 Apr 1993 14:55:52 -0400
Received: by polaris; id AA01449; Thu, 29 Apr 93 14:55:18 -0400
Message-Id: <9304291855.AA01449@polaris>
To: buildhelp
Cc: [email protected]
Subject: Forwarding misdirected mail.
Date: Thu, 29 Apr 93 14:55:17 EDT
From: Grant Van Dyck <vandyck>
------- Forwarded Message
Delivery-Date: Thu, 29 Apr 93 14:41:53 +28716
Return-Path: [email protected]
Received: by flambe.zk3.dec.com; id AA22538; Thu, 29 Apr 1993 14:41:52 -0400
Received: by abyss.zk3.dec.com (5.65/DEC-USSG-ZK3-ULTRIX-09/27/91);
id AA12993; Thu, 29 Apr 1993 14:41:14 -0400
Date: Thu, 29 Apr 1993 14:41:12 -0400
Message-Id: <[email protected]>
From: [email protected] (35G-WU)
To: [email protected]
Cc: [email protected]
Subject: Compilation Optimization Level?
Hi,
What is the Compilation optimization level do I have when I build
a /usr/bin/sort command from my sandbox?
Level 1, 2 or 3? How can I found out?
Thanks,
Wen-Jie
~~~~~~~~~~~~~~~~~~~Standard.mk~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.
.
.
#
# Compilation optimization level. This should be set to whatever
# combination of -O and -g flags you desire. Defaults to -O.
#
# Allow these flags to be overridden per target
#
CC_OPT_LEVEL=${CC_OPT_LEVEL?${CC_OPT_LEVEL}:-O}
_CC_OPT_LEVEL_=${${@}_CC_OPT_LEVEL?${${@}_CC_OPT_LEVEL}:${CC_OPT_LEVEL}}
_CC_OL_=${${@}_OPT_LEVEL?${${@}_OPT_LEVEL}:${OPT_LEVEL?${OPT_LEVEL}:${_CC_OPT_LE
VEL_}}}
.
.
.
.
------- End of Forwarded Message
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 17.1 | AOSG::TAPPAN | Thu Apr 29 1993 17:04 | 34 | ||
Delivery-Date: Thu, 29 Apr 93 16:51:42 -0400
Return-Path: jmcg
Received: by flume.zk3.dec.com (5.65/DEC-USSG-ZK3-ULTRIX-09/27/91);
id AA00343; Thu, 29 Apr 1993 16:51:39 -0400
Date: Thu, 29 Apr 1993 16:51:39 -0400
From: jmcg (Jim McGinness)
To: tappan
Subject: Compilation Optimization Level
> What is the Compilation optimization level do I have when I build
> a /usr/bin/sort command from my sandbox?
> Level 1, 2 or 3? How can I found out?
The complicated expression in template.mk allows the optimization level
to be set for a specific module using the typical ODE makefile style.
To see what level is actually used on a build, you should be able to
ascertain it from the build log. Because there are so many places where
the original default could have been overridden, it's difficult to predict
what value you will see in *your* sandbox--but chances are it's the same
as in the backing tree.
For agosmaint.nightly, the log entry for compiling sort contains:
usr_bin.log:/usr/build/osf1/agosmaint.bld/tools/alpha/cc/cc -std0 -EL -c
-DBSD44 -DMSG -DNLS -DMACH -DCMU -DOSF -Dalpha -D__alpha__ -D__alpha
-Dunix -D__unix__ -D_SHARED_LIBRARIES -O -I `genpath -I.`
`genpath ` -I/usr/build/osf1/agosmaint.bld/export/alpha/usr/include
../../../../../src/usr/bin/sort/sort.c
which still has just a -O. According to the manpage, that's equivalent
to -O2.
| |||||