Saratov Linux User Group
 help / color / mirror / Atom feed
From: zOrg <zorg1331@gmail.com>
To: "Saratov Linux User Group Maillist" <sarlug@lug.ru>
Subject: Re: [Sarlug] Проблема с установкой gcc
Date: Tue, 7 Mar 2006 13:22:32 +0300
Message-ID: <c2584c9b0603070222l1328a978x@mail.gmail.com> (raw)
In-Reply-To: <af63c4dd0603070200i643448a8h@mail.gmail.com>

07.03.06, Александр Конюков<scor2k@gmail.com> написал:
> 07.03.06, Genix<genix@list.ru> написал(а):
> > >  а меня всегда интересовал вопрос: чем компилировать компилятор?
> > думаю, что ответ можно получить читая документацию ;)
>
> И про это есть man? Супер )))
>
> Где-то я слышал (читал) как собирают новые версии gcc :) Вкраце так:
> 1. комилят новую версию старым компилятором
> 2. полученную версию тестят (по скорости наверно?) с старым
> 3. Потом берут новую версию (в шаге 2) и компялят ей себя же (т.е.
> исходники ее).
> 4. Снова сравнивают :) И получают новую версию gcc :D
>

 http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html

В общем так: суть в том, что выполняется технология bootstrap
(относится не только к гцц). Выглядит это следующим образом: сие
действительно компилирует гцц несколько раз, оно использует программы,
скомпиленные в первый раз, чтобы собрать себя во второй, а потом опять
в третий. Потом сверяет итог второй и третьей стадии, чтоб убедиться,
что все пучком.

Отличие от цитируемого поста в том, что сравнивают только третью и
вторую стадии, с первой нет смысла (это может быть вообще другая
версия :). По скорости вроде то же есть какие-то тесты, судя по stdout
в процессе сборке, но их смысл я не уловил.

--

                                                                  zOrg

      reply	other threads:[~2006-03-07 10:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-06 19:04 ` Genix
2006-03-07  6:50   ` Re[2]: " rs
2006-03-07  7:00     ` Genix
2006-03-07 10:00       ` Александр Конюков
2006-03-07 10:22         ` zOrg [this message]

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=c2584c9b0603070222l1328a978x@mail.gmail.com \
    --to=zorg1331@gmail.com \
    --cc=sarlug@lug.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

Saratov Linux User Group

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sarlug/0 sarlug/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 sarlug sarlug/ http://lore.altlinux.org/sarlug \
		sarlug@lists.lug.ru sarlug@lug.ru
	public-inbox-index sarlug

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sarlug


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git