From: Andrey Rahmatullin <wrar-alt@mail.ru>
To: devel@altlinux.ru
Subject: Re: [devel] gcc-3.4 precompiled headers
Date: Sat, 19 Mar 2005 00:30:58 +0500
Message-ID: <20050318193058.GO7848@wrars-comp.wrarsdomain> (raw)
In-Reply-To: <423B188A.5030601@altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 1086 bytes --]
On Fri, Mar 18, 2005 at 09:06:02PM +0300, Mikhail Yakshin wrote:
> Если вкратце - то для любой прилично написанной программы имеет смысл
> сделать что-то вроде:
>
> cat *.cpp *.h | grep '#include' | sort -u >all.h
>
> Скомпилировать полученный all.h в PCH:
>
> g++ $(опции) all.h
>
> и затем подключать этот all.h при сборке всех файлов:
>
> g++ -include all.h $(опции) -c somefile.cpp -o somefile.o
Я все же больш-во программ rpmbuild'ом собираю.
> В стандартной поставке прекомплированные stdc++.h играют роль именно
> таких вот файлов all.h, скомплириованных, правда, только с
> libstdc++'ными заголовками. Но для многих программ на C++ это тоже может
> дать неплохой прирост в производительности сборки.
Так как их подключить? -include в makefile пихать?
Тем более нафик мне -O2 -g?
--
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(8):
Содержимое коробки с Мастером заслуживает того, чтобы купить к ней ещё и
DVD. Правда боюсь, что если класть в коробку USB DVD-читалку, то гнилыми
фруктами закидают.
-- mithraen in community@
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-03-18 19:30 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-12 22:30 Alexey Tourbin
2005-03-12 22:56 ` Dmitry V. Levin
2005-03-13 4:34 ` Andrey Rahmatullin
2005-03-18 11:03 ` Serge Pavlovsky
2005-03-18 11:22 ` Andrey Rahmatullin
2005-03-18 11:25 ` Sergey Pinaev
2005-03-18 11:28 ` Alexey Rusakov
2005-03-18 13:20 ` Serge Pavlovsky
2005-03-18 14:40 ` Andrey Rahmatullin
2005-03-18 15:09 ` Serge Pavlovsky
2005-03-18 16:08 ` Andrey Rahmatullin
2005-03-18 16:18 ` Serge Pavlovsky
2005-03-18 17:48 ` Andrey Rahmatullin
2005-03-18 18:06 ` Mikhail Yakshin
2005-03-18 19:30 ` Andrey Rahmatullin [this message]
2005-03-18 19:40 ` Mikhail Yakshin
2005-03-19 6:53 ` Andrey Rahmatullin
2005-03-19 21:21 ` Dmitry V. Levin
2005-03-20 5:58 ` [devel] " Michael Shigorin
2005-03-21 3:24 ` [devel] " Serge Pavlovsky
2005-03-12 22:58 ` Alexey Rusakov
2005-03-18 11:03 ` Serge Pavlovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050318193058.GO7848@wrars-comp.wrarsdomain \
--to=wrar-alt@mail.ru \
--cc=devel@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git