Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
fbee23e5
Kaydet (Commit)
fbee23e5
authored
Ock 01, 1994
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Documented the fact that IRIX 5.x also supports Sun style shared
libraries.
üst
e30cb84e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
22 deletions
+20
-22
ext.tex
Doc/ext.tex
+10
-11
ext.tex
Doc/ext/ext.tex
+10
-11
No files found.
Doc/ext.tex
Dosyayı görüntüle @
fbee23e5
...
@@ -764,15 +764,15 @@ on some systems you have to use static loading), and dynamically
...
@@ -764,15 +764,15 @@ on some systems you have to use static loading), and dynamically
loading a module that was compiled for a different version of Python
loading a module that was compiled for a different version of Python
(e.g., with a different representation of objects) may dump core.
(e.g., with a different representation of objects) may dump core.
{
\bf
NEW:
}
Under SunOS
, dynamic loading now uses SunOS shared
{
\bf
NEW:
}
Under SunOS
(all versions) and IRIX 5.x, dynamic loading
libraries and is always configured. See at the end of this chapter
now uses shared libraries and is always configured. See at the
for how to create a dynamically loadable module.
end of this chapter
for how to create a dynamically loadable module.
\section
{
Configuring and building the interpreter for dynamic loading
}
\section
{
Configuring and building the interpreter for dynamic loading
}
(Ignore this section for SunOS
--- on SunOS dynamic loading is alway
s
(Ignore this section for SunOS
and IRIX 5.x --- on these system
s
configured.)
dynamic loading is always
configured.)
Dynamic loading is a little complicated to configure, since its
Dynamic loading is a little complicated to configure, since its
implementation is extremely system dependent, and there are no
implementation is extremely system dependent, and there are no
...
@@ -812,8 +812,7 @@ with \samp{\#DL_}, but you must also edit some of the lines to choose
...
@@ -812,8 +812,7 @@ with \samp{\#DL_}, but you must also edit some of the lines to choose
which version of dl
_
loadmod to use, and fill in the pathname of the dld
which version of dl
_
loadmod to use, and fill in the pathname of the dld
library if you use it. And, of course, you must first build
library if you use it. And, of course, you must first build
dl
_
loadmod and dld, if used. (This is now done through the Configure
dl
_
loadmod and dld, if used. (This is now done through the Configure
script. For SunOS, everything is now automatic as long as the
script. For SunOS and IRIX 5.x, everything is now automatic.)
architecture type is
\code
{
sun4
}
.)
\section
{
Building a dynamically loadable module
}
\section
{
Building a dynamically loadable module
}
...
@@ -853,9 +852,9 @@ On SGI Irix, the compiler flag \samp{-G0} (or \samp{-G 0}) must be passed.
...
@@ -853,9 +852,9 @@ On SGI Irix, the compiler flag \samp{-G0} (or \samp{-G 0}) must be passed.
IF THIS IS NOT DONE THE RESULTING CODE WILL NOT WORK.
IF THIS IS NOT DONE THE RESULTING CODE WILL NOT WORK.
\item
\item
{
\bf
NEW:
}
On SunOS
, you must create a shared library from your
\samp
{
.o
}
{
\bf
NEW:
}
On SunOS
and IRIX 5.x, you must create a shared library
f
ile using the following command (assuming your module is called
f
rom your
\samp
{
.o
}
file using the following command (assuming your
\code
{
foo
}
):
module is called
\code
{
foo
}
):
\begin{verbatim}
\begin{verbatim}
ld -o foomodule.so foomodule.o <any other libraries needed>
ld -o foomodule.so foomodule.o <any other libraries needed>
...
@@ -863,7 +862,7 @@ file using the following command (assuming your module is called
...
@@ -863,7 +862,7 @@ file using the following command (assuming your module is called
and place the resulting
\samp
{
.so
}
file in the Python search path (not
and place the resulting
\samp
{
.so
}
file in the Python search path (not
the
\samp
{
.o
}
file). Note: on Solaris, you need to pass
\samp
{
-G
}
to
the
\samp
{
.o
}
file). Note: on Solaris, you need to pass
\samp
{
-G
}
to
the loader.
the loader
; on IRIX 5.x, you need to pass
\samp
{
-shared
}
. Sigh..
.
\end{itemize}
\end{itemize}
...
...
Doc/ext/ext.tex
Dosyayı görüntüle @
fbee23e5
...
@@ -764,15 +764,15 @@ on some systems you have to use static loading), and dynamically
...
@@ -764,15 +764,15 @@ on some systems you have to use static loading), and dynamically
loading a module that was compiled for a different version of Python
loading a module that was compiled for a different version of Python
(e.g., with a different representation of objects) may dump core.
(e.g., with a different representation of objects) may dump core.
{
\bf
NEW:
}
Under SunOS
, dynamic loading now uses SunOS shared
{
\bf
NEW:
}
Under SunOS
(all versions) and IRIX 5.x, dynamic loading
libraries and is always configured. See at the end of this chapter
now uses shared libraries and is always configured. See at the
for how to create a dynamically loadable module.
end of this chapter
for how to create a dynamically loadable module.
\section
{
Configuring and building the interpreter for dynamic loading
}
\section
{
Configuring and building the interpreter for dynamic loading
}
(Ignore this section for SunOS
--- on SunOS dynamic loading is alway
s
(Ignore this section for SunOS
and IRIX 5.x --- on these system
s
configured.)
dynamic loading is always
configured.)
Dynamic loading is a little complicated to configure, since its
Dynamic loading is a little complicated to configure, since its
implementation is extremely system dependent, and there are no
implementation is extremely system dependent, and there are no
...
@@ -812,8 +812,7 @@ with \samp{\#DL_}, but you must also edit some of the lines to choose
...
@@ -812,8 +812,7 @@ with \samp{\#DL_}, but you must also edit some of the lines to choose
which version of dl
_
loadmod to use, and fill in the pathname of the dld
which version of dl
_
loadmod to use, and fill in the pathname of the dld
library if you use it. And, of course, you must first build
library if you use it. And, of course, you must first build
dl
_
loadmod and dld, if used. (This is now done through the Configure
dl
_
loadmod and dld, if used. (This is now done through the Configure
script. For SunOS, everything is now automatic as long as the
script. For SunOS and IRIX 5.x, everything is now automatic.)
architecture type is
\code
{
sun4
}
.)
\section
{
Building a dynamically loadable module
}
\section
{
Building a dynamically loadable module
}
...
@@ -853,9 +852,9 @@ On SGI Irix, the compiler flag \samp{-G0} (or \samp{-G 0}) must be passed.
...
@@ -853,9 +852,9 @@ On SGI Irix, the compiler flag \samp{-G0} (or \samp{-G 0}) must be passed.
IF THIS IS NOT DONE THE RESULTING CODE WILL NOT WORK.
IF THIS IS NOT DONE THE RESULTING CODE WILL NOT WORK.
\item
\item
{
\bf
NEW:
}
On SunOS
, you must create a shared library from your
\samp
{
.o
}
{
\bf
NEW:
}
On SunOS
and IRIX 5.x, you must create a shared library
f
ile using the following command (assuming your module is called
f
rom your
\samp
{
.o
}
file using the following command (assuming your
\code
{
foo
}
):
module is called
\code
{
foo
}
):
\begin{verbatim}
\begin{verbatim}
ld -o foomodule.so foomodule.o <any other libraries needed>
ld -o foomodule.so foomodule.o <any other libraries needed>
...
@@ -863,7 +862,7 @@ file using the following command (assuming your module is called
...
@@ -863,7 +862,7 @@ file using the following command (assuming your module is called
and place the resulting
\samp
{
.so
}
file in the Python search path (not
and place the resulting
\samp
{
.so
}
file in the Python search path (not
the
\samp
{
.o
}
file). Note: on Solaris, you need to pass
\samp
{
-G
}
to
the
\samp
{
.o
}
file). Note: on Solaris, you need to pass
\samp
{
-G
}
to
the loader.
the loader
; on IRIX 5.x, you need to pass
\samp
{
-shared
}
. Sigh..
.
\end{itemize}
\end{itemize}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment