ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: [sisyphus] Re: fpc&lazarus [JT]
Date: Thu, 20 Oct 2005 18:01:07 +0400
Message-ID: <20051020140107.GA3352@solemn.turbinal.org> (raw)
In-Reply-To: <20051020082548.GY16082@osdn.org.ua>

[-- Attachment #1: Type: text/plain, Size: 1811 bytes --]

On Thu, Oct 20, 2005 at 11:25:48AM +0300, Michael Shigorin wrote:
> On Thu, Oct 20, 2005 at 06:49:03AM +0400, Alexey Tourbin wrote:
> > В binutils >= 1:2.15.92 есть новая опция --reduce-memory-overheads.
> > Вместе с --no-keep-memory получается приемлемый результат: для линковки
> > ppc386 используется 108M, для линковки fp используется 177M.  Реально
> > RSS требуется меньше, так что ppc386 и fp удается скомпоновать даже на
> > машинке с 128M, при активной поддержке kswapd.  Но всё же это большой
> > успех, потому что это разница между "работает" и "не работает".
> 
> Лёш, у нас на сборочнице полтора гига памяти и свопится оно
> на SCSI. :)  Как раз такие задачи иногда проще (в смысле времени)
> решать оглашением "эй, оно тут память жрёт", особенно если
> желающих применить рапшиль несколько.

У меня своя сборочница скоро будет неплохая.  Для доступа к чужой
сборочнице нужен bandwidth.  Дело здесь не в этом.  Просто хочется
"подкрутить" существующую технику оптимизации, чтобы она приемлемо
работала на low-end машинах.  К сожалению в ld(1) сказано, что при
экономии памяти работает O(n^2), а не O(n) алогритм.  Нужно будет ещё
поэкспериментировать.  Но для сборки больших проектов со smart linking
перерасход памяти становится основной проблемой.

Кто ничего не понял, smart linking -- это специальная техника
оптимизации статической линковки.  Вместо объектных *.o файлов создаются
*.a файлы (архивы *.o файлов).  То есть *.o файл нарезается на
мелкие-мелкие кусочки.  При линковке с *.a файлами линкер выдёргивает
только те кусочки, которые реально используются в бинаре.  Это такая
техника в стандартном линкере, она ещё со времен царя Гороха.  Но она
работает не очень эффективно по времени/памяти.  Бинарь может получиться
меньше раза в 2 в некоторых случаях.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-10-20 14:01 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-19 12:56 [sisyphus] fpc&lazarus ashen
2005-10-19 13:47 ` [sisyphus] Re: fpc&lazarus [-] Michael Shigorin
2005-10-19 13:59   ` ashen
2005-10-19 14:05     ` Michael Shigorin
2005-10-19 14:08     ` Led
2005-10-19 16:40       ` Alexey Tourbin
2005-10-19 19:08         ` Eugene Ostapets
2005-10-19 20:12           ` Alexey Tourbin
2005-10-19 20:56             ` Eugene Ostapets
2005-10-20  2:49               ` Alexey Tourbin
2005-10-20  5:12                 ` ashen
2005-10-20 10:08                   ` Led
2005-10-20 19:36                   ` Alexander Bokovoy
2005-10-20  6:06                 ` Eugene Ostapets
2005-10-20  7:03                   ` ashen
2005-10-20  7:15                     ` Eugene Ostapets
2005-10-20 11:55                     ` Sergey Shilov
2005-10-20  9:44                       ` Epiphanov Sergei
2005-10-20  9:58                         ` Eugene Ostapets
2005-10-20 14:18                       ` Alexey Tourbin
2005-10-20 18:13                         ` Sergey Shilov
2005-12-20 12:02                           ` Sergey Shilov
2005-12-20 12:02                       ` Sergey Shilov
2005-10-20  8:25                 ` [sisyphus] Re: fpc&lazarus [JT] Michael Shigorin
2005-10-20 14:01                   ` Alexey Tourbin [this message]
2005-10-20 10:14         ` [sisyphus] Re: fpc&lazarus [-] Led
2005-10-19 19:07     ` Eugene Ostapets
2005-10-19 15:10 ` [sisyphus] fpc&lazarus Igor Zubkov
2005-10-19 15:49 ` [sisyphus] fpc&lazarus Alexey Tourbin
2005-10-19 18:17   ` [sisyphus] fpc/ide Alexey Tourbin
2005-10-19 19:09     ` Eugene Ostapets
2005-10-20  9:56     ` Led
2005-10-20  9:58       ` Eugene Ostapets
2005-10-20 10:19       ` Led
2005-10-20  5:15 ` [sisyphus] fpc&lazarus ashen
2005-10-20  6:08   ` Eugene Ostapets

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=20051020140107.GA3352@solemn.turbinal.org \
    --to=at@altlinux.ru \
    --cc=sisyphus@lists.altlinux.org \
    /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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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