亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tour-unix.html

?? 一個比較通用的大數運算庫
?? HTML
字號:
<html>
<head>
<title>
A Tour of NTL: Obtaining and Installing NTL for UNIX  </title>
</head>

<body bgcolor="#fff9e6">
<center>
<a href="tour-stdcxx.html"><img src="arrow1.gif" alt="[Previous]" align=bottom></a>
 <a href="tour.html"><img src="arrow2.gif" alt="[Up]" align=bottom></a> 
<a href="tour-win.html"> <img src="arrow3.gif" alt="[Next]" align=bottom></a>
</center>

<h1> 
<p align=center>
A Tour of NTL: Obtaining and Installing NTL for UNIX 
</p>
</h1>

<p> <hr> <p>

This procedure should work on most Unix or Unix-like platorms
(including MAC OSX, and Windows with Cygwin tools).

<p>


To obtain the source code and documentation for NTL,
<a href="http://www.shoup.net/ntl/download.html">
download <tt>ntl-xxx.tar.gz</tt></a>,
placing it a directory, and then, working in this directory,
do the following.
Here, "<tt>xxx</tt>" denotes the current version number.



<p>
<pre>
   % gunzip ntl-xxx.tar.gz
   % tar xf ntl-xxx.tar
   % cd ntl-xxx/src
   % ./configure PREFIX=$HOME/sw
   % make
   % make check
   % make install
</pre>

This will build, test, and install NTL in <tt>$HOME/sw</tt>.
Of course, change <tt>$HOME/sw</tt> to whatever you want (the default is 
<tt>/usr/local</tt>).
You will find the NTL header files in <tt>$HOME/sw/include/NTL</tt>
 and the compiled binary 
in <tt>$HOME/sw/lib/libntl.a</tt>.
<p>
If you really are interested in high-performace, you will
<i>definitely</i> want to build NTL
using  GMP (the GNU Multi-Precision package).
If GMP has already been installed in a standard
system library, like <tt>/usr/local</tt>, then invoke <tt>configure</tt>
above as
<pre>
   % ./configure PREFIX=$HOME/sw NTL_GMP_LIP=on
</pre>
and if GMP is installed somewhere else, say <tt>$HOME/sw</tt>, then
<pre>
   % ./configure PREFIX=$HOME/sw NTL_GMP_LIP=on GMP_PREFIX=$HOME/sw
</pre>
does the job.
<a href="tour-gmp.html">This page</a> provides more
details.


<p>
Now suppose you want to compile a program that uses NTL.
Suppose you are working in some directory and <tt>foo.c</tt>
is your program.
Assume that you have installed NTL in <tt>$HOME/sw</tt> as above.
The following should work:
<pre>
   % g++ -I$HOME/sw/include -L$HOME/sw/lib foo.c -o foo -lntl -lm
</pre>
If you are using GMP, then:
<pre>
   % g++ -I$HOME/sw/include -L$HOME/sw/lib foo.c -o foo -lntl -lgmp -lm
</pre>

<p>
<h2>
More Details
</h2>
<p>
What follows is a more detailed description of the installation process.




<p>
<b>Step 1.</b>
Extract the source files by executing:
<pre>
   % gunzip ntl-xxx.tar.gz
   % tar xvf ntl-xxx.tar
</pre>

<p>
Note that this will unpack everything into a sub-directory <tt>ntl-xxx</tt>,
creating this directory if necessary.
Next:
<pre>
   % cd ntl-xxx
   % ls
</pre>
You should see a file "<tt>README</tt>", and directories 
"<tt>include</tt>", "<tt>doc</tt>", and "<tt>src</tt>".
The directory "<tt>doc</tt>" contains all the documentation.
The file "<tt>doc/tour.html</tt>" contains a copy of the on-line documentation.
The directory "<tt>include</tt>" 
contains all the header files within a subdirectory
"<tt>include/NTL</tt>".
The directory "<tt>src</tt>" contains everything else.
Go there now:
<pre>
   % cd src
</pre>

<p>
<b>Step 2.</b>
Run the configuration script.

<p>
Execute the command
<pre>
   % ./configure [ variable=value ]...
</pre>

This configure script generates the file "<tt>makefile</tt>" and the file
"<tt>../include/NTL/config.h</tt>", based upon the values assigned to the
variables on the command line.


<p>

Here are the most important variables, and their default values.

<p>
<pre>
   CC=gcc               # The C compiler
   CXX=g++              # The C++ compiler
   CFLAGS=-O2           # C complilation flags
   CXXFLAGS=$(CFLAGS)   # C++ compilation flags (by default, same as CFLAGS)

   PREFIX=/usr/local    # Directory in which to install NTL library components

   NTL_STD_CXX=on       # ISO Mode switch

   NTL_GMP_LIP=off      # Switch 'on' to enable the use of GMP as the primary
                        # long integer package

   GMP_PREFIX=none      # Directory in which GMP components have been installed
</pre>

<p>
<i>Examples.</i>
<p>

<ul>
<li>
If you are happy with all the default values, run:
<pre>
   % ./configure
</pre>
Actually, the initially installed <tt>makefile</tt> and <tt>config.h</tt> files
already reflect the default values, and you do not have to even run
the configure script.

<p>
<li>
If your C/C++ compilers are called cc/CC, run:
<pre>
   % ./configure CC=cc CXX=CC
</pre>

<p>
<li>
If you want to use, say, the options <tt>-g</tt> and <tt>-O</tt> for 
compiling <tt>C</tt> and <tt>C++</tt>, run:
<pre>
   % ./configure "CFLAGS=-g -O"
</pre>
Note the use of quotes to keep the argument in one piece.

<p>
<li>
If <a href="tour-gmp.html">GMP (the GNU Multi-Precision package)</a>  
is installed in a standard system directory, and you want to use it
to obtain better performance for long integer arithemtic, run:
<pre>
   % ./configure NTL_GMP_LIP=on
</pre>
If GMP was installed in 
 <tt>$HOME/sw</tt>,
run:
<pre>
   % ./configure NTL_GMP_LIP=on GMP_PREFIX=$HOME/sw
</pre>
Go <a href="tour-gmp.html">here</a> for complete details.

<p>
<li>
If you want to use 
<a href="tour-stdcxx.html">traditional rather than ISO mode</a>, run:
<pre>
   % ./configure NTL_STD_CXX=off
</pre>

<p>
<li>
If you want to install NTL in the directory <tt>$HOME/sw</tt>,
run:
<pre>
   % ./configure PREFIX=$HOME/sw
</pre>
</ul>

<p>
There are a number of more esoteric configuration variables that can be set.
See <a href="config.txt"><tt>config.txt</tt></a> for a complete
description.

<p>
Note that all of these configuration options can also be set
by editing the two files <tt>makefile</tt>
and <tt>../include/NTL/def_config.h</tt> by hand.
These files are fairly simple and well documented, and so this is not
too hard to do.

<p>
Note that the file "<tt>../include/NTL/def_config.h</tt>"
contains a backup copy of the original <tt>config.h</tt> file,
and that the file "<tt>def_makefile</tt>"
contains a backup copy of the original <tt>makefile</tt> file.

<p>
This command is intended only as a convenience 
and -- more importantly -- to allow the configuration process
to be script driven.
This script does not perform any "magic", like finding out what
the local C compiler is called, etc.  
If the defaults are not
correct for your platform, you have to set an appropriate variable.



<p>
<b>Step 3.</b>
Execute <tt>make</tt>.

<p>
Just type:
<pre>
   % make
</pre>

<p>
The build  process after this point is fully automatic.
But here is a description of what happens.

<p>

<ol>
<li>
The makefile 
builds the file "<tt>../include/NTL/mach_desc.h</tt>", which defines some machine characteristics
such as word size and machine precision.
This is done by compiling and running a <tt>C</tt> program
called <tt>MakeDesc</tt>
that figures out these characteristics on its
own, and prints some diagnostics to the terminal.

<p>
<li>
A script is run that "automagically"
determines the best way to write a timing function
on your platform.
It tries different routines in the files <tt>GetTime1.c</tt>,
<tt>GetTime2.c</tt>, etc., and when it finds a good one,
it copies the file into <tt>GetTime.c</tt>.

<p>
<li>
The files "<tt>lip_gmp_aux_impl.h</tt>" and "<tt>../include/NTL/gmp_aux.h</tt>"
are generated for use with GMP.
If not using GMP, these files are still created, but they are empty.


<p>
<li>
The configuration wizard script is run.
This script works in a sub-directory, 
compiling several programs,
and performing a number of timing experiments,
in order to determine the optimal setting for a number of flags
in the file <tt>../include/NTL/config.h</tt>.
When the script finishes (it may take several minutes),
you will be told what the wizard thinks are the best settings,
and your <tt>config.h</tt> file will be automatically updated.
Note that any flags you set in Step 2 
will be in
effect while the wizard runs, and will be retained in the updated
<tt>config.h</tt> file, with the exception of the flags
<pre>
   NTL_LONG_LONG NTL_AVOID_FLOAT NTL_TBL_REM NTL_AVOID_BRANCHING 
   NTL_SPMM_UL NTL_SPMM_ULL NTL_SPMM_ASM NTL_GF2X_NOINLINE NTL_GF2X_ALTCODE
</pre>
which are set by the wizard. 
Also note that if you <i>do not</i> want the wizard to run,
you should pass <tt>WIZARD=off</tt> to the configure script;
however, this is not recommended.

<p>
<li>
The makefile will compile all the source files,
and then creates the library "<tt>ntl.a</tt>" in the current directory.
</ol>

<p>
Note that for finer control  you can optionally  break up this process 
into the five
component steps:
<pre>
   % make setup1
   % make setup2
   % make setup3
   % make setup4
   % make ntl.a
</pre>


<p>

<p>
<b>After NTL is built.</b>

<p>
Executing <tt>make check</tt> runs a series of timing and test programs.
It is a good idea to run this to see if everything really
went well.

<p>
Executing <tt>make install</tt>
copies a number of files to a directory <tt>&lt;prefix&gt;</tt> that you
specify by passing <tt>PREFIX=&lt;prefix&gt;</tt>
as an argument to <tt>configure</tt> at configuration time,
or as an argument to <tt>make install</tt> at installation time.
The default is <tt>/usr/local</tt>, so either you need root 
permissions, or you choose a <tt>&lt;prefix&gt;</tt> for which
you have write permission.
The files <tt>../include/NTL/*</tt> are copied into
<tt>&lt;prefix&gt;/include/NTL</tt>.
The file <tt>ntl.a</tt> is copied to <tt>&lt;prefix&gt;/lib/libntl.a</tt>.
The files <tt>../doc/*</tt> are copied into
<tt>&lt;prefix&gt;/doc/NTL</tt>.

<p>
You can also "fine tune" the installation procedure further.
See the <a href="config.txt">configure documentation</a> for details.

<p>
Executing <tt>make uninstall</tt> undoes <tt>make install</tt>.


<p>
Executing <tt>make clobber</tt> essentially
undoes <tt>make</tt>.
<i>Make sure you do this if you re-build NTL for a different architecture!</i>

<p>
Executing <tt>make clean</tt> will remove object files, but not 
<tt>ntl.a</tt>.
To rebuild after executing <tt>make clean</tt>, execute <tt>make ntl.a</tt>.


<p>
Assuming you have installed NTL as above,
to compile a program <tt>foo.c</tt> that uses NTL,
execute
<pre>
   g++ -I&lt;prefix&gt;/include -L&lt;prefix&gt;/lib foo.c -o foo -lntl -lm
</pre>
This compiles <tt>foo.c</tt> as a <tt>C++</tt> program
and creates the binary <tt>foo</tt>.
<p>
If you built NTL using <a href="tour-gmp.html">GMP</a>, execute:
<pre>
   g++ -I&lt;prefix&gt;/include -L&lt;prefix&gt;/lib -L&lt;gmp_prefix&gt;/lib  foo.c -lntl -lgmp -lm
</pre>
<p>
Of course, if <tt>&lt;prefix&gt;</tt> and <tt>&lt;gmp_prefix&gt;</tt>
are the same, you do not need to  duplicate the <tt>-L</tt> 
flags, and if either are standard directories, like <tt>/usr/local</tt>,
you can leave out the corresponding <tt>-I</tt> and <tt>-L</tt>
flags altogether.
<p>
This works even if you are not working in the directory
in which you built NTL.
If you <i>are</i> working in that directory, you can just execute
<pre>
   make foo
</pre>


<p> <p>
<p> <p>

<center>
<a href="tour-stdcxx.html"><img src="arrow1.gif" alt="[Previous]" align=bottom></a>
 <a href="tour.html"><img src="arrow2.gif" alt="[Up]" align=bottom></a> 
<a href="tour-win.html"> <img src="arrow3.gif" alt="[Next]" align=bottom></a>
</center>

</body>
</html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本美女一区二区| 一区二区三区视频在线观看| 麻豆精品在线观看| 日韩欧美国产午夜精品| 久久激情五月激情| 欧美经典一区二区| 91蜜桃在线观看| 亚洲成人tv网| 2023国产精华国产精品| 高清不卡一二三区| 亚洲欧美电影院| 欧美日韩三级在线| 国产在线播放一区二区三区| 国产精品高潮呻吟| 欧美日韩不卡在线| 国产精品一区二区在线观看网站| 国产精品久久久久桃色tv| 欧美亚洲禁片免费| 国产一区二区导航在线播放| 亚洲欧洲国产日本综合| 欧美日韩一二三区| 国产成人免费视频一区| 亚洲制服丝袜一区| 精品国偷自产国产一区| 色香蕉成人二区免费| 日韩电影免费在线| 日韩伦理免费电影| 日韩欧美一区在线观看| 99精品桃花视频在线观看| 亚洲不卡一区二区三区| 久久欧美一区二区| 欧美日韩一区二区在线视频| 国产精品小仙女| 亚洲国产视频直播| 国产精品无圣光一区二区| 欧美日韩aaa| 99久久综合国产精品| 天天综合色天天| 亚洲视频免费在线观看| 精品国产乱码久久久久久图片 | 亚洲人成网站在线| 精品国产伦一区二区三区观看体验 | 日韩一卡二卡三卡| 色天天综合久久久久综合片| 国内久久婷婷综合| 婷婷综合五月天| 亚洲欧洲综合另类| 欧美国产成人精品| 26uuu亚洲综合色欧美| 欧美三级电影网站| 91免费国产在线观看| 国产成人综合在线观看| 免费观看久久久4p| 亚洲高清中文字幕| 一级日本不卡的影视| 亚洲欧洲精品成人久久奇米网| 久久亚洲精精品中文字幕早川悠里| 欧美三级蜜桃2在线观看| 色综合视频一区二区三区高清| 国产乱色国产精品免费视频| 日本不卡不码高清免费观看| 亚洲大尺度视频在线观看| 亚洲欧美日本在线| 亚洲女人****多毛耸耸8| 亚洲国产精品精华液ab| 久久久国产午夜精品| 久久综合狠狠综合久久综合88| 欧美一区二区播放| 91精品国产综合久久久久| 欧美日韩国产一区二区三区地区| 色系网站成人免费| 欧美在线观看视频一区二区三区 | 国产福利不卡视频| 国产成人午夜精品5599| 国产激情视频一区二区在线观看| 国产一区二区女| 国产乱色国产精品免费视频| 国产一区二区三区四区在线观看| 国产精品综合二区| 国产成人免费9x9x人网站视频| 国产一区二区美女诱惑| 成人一级视频在线观看| 国产91露脸合集magnet| 成人一区在线观看| 91视频观看免费| 欧美三级电影精品| 日韩三级视频在线观看| 久久综合九色综合97婷婷女人| 久久久久久**毛片大全| 国产精品入口麻豆九色| 亚洲人成小说网站色在线| 亚洲国产成人av网| 久久精品国产亚洲一区二区三区 | 免费成人结看片| 韩国女主播一区二区三区| 国产91清纯白嫩初高中在线观看| 波多野结衣亚洲一区| 91久久精品一区二区二区| 欧美日韩不卡在线| 久久综合资源网| 国产精品家庭影院| 丝袜亚洲精品中文字幕一区| 蜜臀av国产精品久久久久| 国产伦精品一区二区三区在线观看| 成人av午夜影院| 欧美三级电影精品| 久久精品网站免费观看| 91蝌蚪国产九色| 日韩精品乱码av一区二区| 亚洲视频一区二区在线观看| 午夜久久久久久电影| 久久精品国产一区二区| 91丨九色丨蝌蚪富婆spa| 91精品国产综合久久香蕉麻豆| 国产欧美日韩三级| 亚洲一区中文日韩| 国产精品69久久久久水密桃 | 91小视频免费观看| 欧美一级爆毛片| 亚洲天堂免费看| 麻豆国产精品一区二区三区| av一二三不卡影片| 日韩久久免费av| 亚洲精品国产一区二区精华液| 另类小说一区二区三区| 在线视频国内自拍亚洲视频| 亚洲精品一区二区三区影院| 夜夜嗨av一区二区三区中文字幕| 国产一区二区三区免费观看| 欧美日韩一区二区三区在线| 亚洲国产精品成人综合色在线婷婷| 亚洲1区2区3区4区| 91视频国产资源| 久久久久久久久久久久久久久99 | 欧美午夜一区二区| 中文字幕 久热精品 视频在线| 午夜精品一区在线观看| 成a人片亚洲日本久久| 欧美成人a在线| 日韩综合一区二区| 欧美在线免费播放| 亚洲欧美成aⅴ人在线观看| 国产福利91精品| 日韩欧美中文一区| 日韩在线一区二区| 91成人在线观看喷潮| 国产精品福利一区二区三区| 国产乱子伦一区二区三区国色天香| 欧美日韩精品一区视频| 亚洲美女屁股眼交3| 成人精品gif动图一区| 久久久国产精品麻豆| 国产最新精品免费| 欧美v日韩v国产v| 久久精品国产99国产| 3atv在线一区二区三区| 亚洲gay无套男同| 欧美日韩激情在线| 性感美女久久精品| 91麻豆精品国产91久久久久久久久| 亚洲黄色av一区| 色综合天天综合网国产成人综合天 | 日韩av电影天堂| 制服丝袜日韩国产| 日韩精品一卡二卡三卡四卡无卡| 欧美日韩在线免费视频| 亚洲成a人片在线观看中文| 欧美唯美清纯偷拍| 亚洲成av人**亚洲成av**| 欧美视频一区在线观看| 亚洲线精品一区二区三区八戒| 欧美网站一区二区| 天堂一区二区在线| 日韩欧美国产一区在线观看| 久久99久久99小草精品免视看| 欧美不卡123| 国产精品自拍三区| 国产精品高清亚洲| 欧美亚日韩国产aⅴ精品中极品| 五月婷婷综合网| 欧美一区二区精美| 国产精品资源站在线| 国产精品美女www爽爽爽| 91在线高清观看| 视频一区视频二区中文字幕| 欧美一区二区三区人| 激情亚洲综合在线| 国产精品免费网站在线观看| 一本大道久久a久久精品综合| 亚洲国产视频在线| 精品免费国产二区三区| 国产v综合v亚洲欧| 中文字幕一区二区三区乱码在线 | 秋霞电影网一区二区| 精品理论电影在线观看| 不卡一二三区首页| 亚洲国产精品精华液网站 | 国产欧美日韩卡一| 在线免费观看不卡av| 免费欧美在线视频|