ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Gleb Kulikov <gleb@asd.iao.ru>
To: community@altlinux.ru
Subject: Re: [Comm] c++ & perl
Date: Tue, 20 Jul 2004 21:27:01 +0700
Message-ID: <200407202127.01310.gleb@asd.iao.ru> (raw)
In-Reply-To: <20040720090232.021419b7.f0rk@mail.ru>

В сообщении от Вторник 20 Июль 2004 16:02 Андрей написал:
> >Компилирующих - да, путем прилинковки объектных кодов. Perl является
> >интерпрератором и объектников не генерирует, поэтому такое объединение
> >невозможно в принципе.
>
> А можно поподробнее о прилинковки объектного кода...?

Так, с Перлом, слава Богу, не работаю, но пару копеек вставлю :) В большинство 
хорошо сконструированных интерпретируемых языков, можно включать расширения, 
написанные на Си, и часто, на ++. И наоборот, из Си/++, можно вызывать части, 
написанные на интерпретируемых языках, путём подлинковки исполняющей системы 
интерпретатора к основной Си программе. Первое делается либо вручную, после 
тщательного изучения соответствующего API (документировано в соотв. 
документации к интерпретатору), либо при помощи средств, автоматически 
строящих модули расширения по исходному тексту на Си (см. SWIG), второе -- 
только вручную, в лучшем случае, при помощи ранее написанных вспомогательных  
библиотек/классов.

-- 
						Салют, /GLeb

UIN: 15341920
jabber://gleb@asd.iao.ru
netmail: 2:5005/78


  reply	other threads:[~2004-07-20 14:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-20  9:02 Андрей
2004-07-20 14:27 ` Gleb Kulikov [this message]
2004-07-21  3:37   ` Mike Lykov

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=200407202127.01310.gleb@asd.iao.ru \
    --to=gleb@asd.iao.ru \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

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

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


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