Difference between revisions of "RTL/ja"

From Free Pascal wiki
Jump to navigationJump to search
m (New page: {{RTL}} {{Japanese Menu}} Free Pascal ランタイムライブラリ (RTL) A ''Run-Time Library'' is the set of source code files that are used to create the portion of ...)
 
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
Free Pascal ランタイムライブラリ (RTL)
 
Free Pascal ランタイムライブラリ (RTL)
  
A ''Run-Time Library'' is the set of [[Source code|source code]] files that are used to create the portion of the [[Application|application]] which is generated or included by the [[Compiler|compiler]] and used for the following purposes:
+
''ランタイムライブラリ''は、[[Application|アプリケーション]]の環境依存部分を吸収するために生成したり、コンパイラがアプリケーションにインクルードしたりするのに使われる、いくつかの[[Source code|ソースコード]]ファイルです。
*[[Initialization]] of the run-time-library itself prior to activation of the user's application
+
次の目的のために使われます:
*[[Initialization]] and [[startup]] of the application
+
*ユーザーアプリケーションを実行する前に、ランタイムライブラリそのものを初期化[[Initialization]] するために使われます。
*providing standard Pascal services to the application (support for the [[Write]] and [[Writeln]] [[standard function]]s, for example)
+
*アプリケーションを初期化[[Initialization]]して実行 [[startup]]します。
*providing any [[library function]]s which are not defined [[inline]] by the compiler such as mathematical routines
+
*標準パスカル関数をアプリケーションに提供します。(例えば、[[Write]] [[Writeln]]などの標準関数 [[standard function]]です。)
*providing extended Pascal services to the application (support for the [[Assign]] [[extended function]] to assign a reference to an [[external file]] to a [[file variable]]).
+
*コンパイラのインライン[[inline]]では提供されない、(例えば特別な数学関数のような)ライブラリ関数[[library function]]を提供します。
*providing a conversion for local equivalents for a standard or extended function into the local equivalent (for example, changing the Write or writeln statement to write to a window in a windowed environment if the file variable is pointing to a window, to write to the screen in a text environment if the file is pointing to the terminal, or to write to a file if the file variable is pointing to an external file.
+
*拡張パスカル関数[[extended function]]をアプリケーションに提供します。(例えば、ファイル変数[[file variable]]に外部ファイル[[external file]]を割り当てる[[Assign]]関数など)
 +
*標準パスカル関数や拡張パスカル関数のI/Oに対して、適切なローカルのリソースを割り当てます。(例えば、ウインドウシステム環境においては、Writeやwriteln文のファイル変数がウインドウを示すようになっているなら、そのように変更します。テキスト環境でターミナルを示す場合や、外部ファイルに割り当てる場合なども同様です)
  
== RTL units ==
+
== RTLユニット ==
Due to a combination of different reasons, especially the fact that FPC tries to be compatible to two different compilers (TP/BP and Delphi) with slightly different syntax and different sets of supplied units for two different paradigms (procedural and object oriented programming), and that FPC supports many different platforms requiring support of both platform specific API functions and common routines available across all or at least most supported platforms, there are lots of different units with partly overlapping functionality. Simplified overview can be found in this [[Unit categorization|unit categorization]], detailed description of individual units and included routines is available in RTL unit reference manual provided as part of FPC extensive documentation.
+
特にFPCが力を入れている、微妙に文法やライブラリユニットが異なる2つのコンパイラ、TurboPascal/BorlandPascalとDelphiの互換性をとろうとしていることや、FPCが多くのプラットホームをサポートしていることが原因ですが、部分的に機能が重複しているユニットが多くあります。
  
== Using RTL ==
+
ざっと見通すには、[[Unit categorization|ユニットのカテゴリ]]を見るとよいでしょう。
Some problems using the [[crt unit|crt]] and the [[video unit|video]] units with unix terminals are described here: [[Terminal & Fonts]]
+
それぞれのユニットの詳細な記述や含まれている関数などは、FPCの拡張文書である、RTLユニットリファレンスマニュアルを見てください。
  
Read about the API units (Video/Mouse/Keyboard) and the Crt Unix, the bigger picture in [[KVM API and Crt future]]
+
== RTLを使う ==
  
The windows interface units have an own page [[Windows API units|here]]
+
Unix ターミナル上で [[crt unit|crtユニット]]や [[video unit|video]]を使う上でのいくつかの問題は、[[Terminal & Fonts]]を見てください。
 +
 
 +
たくさんのAPIのある(Video/Mouse/Keyboard)ユニットや、Crt Unixユニットを見てください。[[KVM API and Crt future]]のより大きな絵を見てください。
 +
 
 +
Windowsインターフェースユニットは、別途[[Windows API units|Windows API Units]]があります。
  
 
== Developing RTL ==
 
== Developing RTL ==
  
 
[[RTL development articles]]
 
[[RTL development articles]]

Latest revision as of 15:42, 24 July 2008

Deutsch (de) English (en) español (es) français (fr) Bahasa Indonesia (id) 日本語 (ja) русский (ru)

日本語版メニュー
メインページ - Lazarus Documentation日本語版 - 翻訳ノート - 日本語障害情報

Free Pascal ランタイムライブラリ (RTL)

ランタイムライブラリは、アプリケーションの環境依存部分を吸収するために生成したり、コンパイラがアプリケーションにインクルードしたりするのに使われる、いくつかのソースコードファイルです。 次の目的のために使われます:

  • ユーザーアプリケーションを実行する前に、ランタイムライブラリそのものを初期化Initialization するために使われます。
  • アプリケーションを初期化Initializationして実行 startupします。
  • 標準パスカル関数をアプリケーションに提供します。(例えば、WriteWritelnなどの標準関数 standard functionです。)
  • コンパイラのインラインinlineでは提供されない、(例えば特別な数学関数のような)ライブラリ関数library functionを提供します。
  • 拡張パスカル関数extended functionをアプリケーションに提供します。(例えば、ファイル変数file variableに外部ファイルexternal fileを割り当てるAssign関数など)
  • 標準パスカル関数や拡張パスカル関数のI/Oに対して、適切なローカルのリソースを割り当てます。(例えば、ウインドウシステム環境においては、Writeやwriteln文のファイル変数がウインドウを示すようになっているなら、そのように変更します。テキスト環境でターミナルを示す場合や、外部ファイルに割り当てる場合なども同様です)

RTLユニット

特にFPCが力を入れている、微妙に文法やライブラリユニットが異なる2つのコンパイラ、TurboPascal/BorlandPascalとDelphiの互換性をとろうとしていることや、FPCが多くのプラットホームをサポートしていることが原因ですが、部分的に機能が重複しているユニットが多くあります。

ざっと見通すには、ユニットのカテゴリを見るとよいでしょう。 それぞれのユニットの詳細な記述や含まれている関数などは、FPCの拡張文書である、RTLユニットリファレンスマニュアルを見てください。

RTLを使う

Unix ターミナル上で crtユニットvideoを使う上でのいくつかの問題は、Terminal & Fontsを見てください。

たくさんのAPIのある(Video/Mouse/Keyboard)ユニットや、Crt Unixユニットを見てください。KVM API and Crt futureのより大きな絵を見てください。

Windowsインターフェースユニットは、別途Windows API Unitsがあります。

Developing RTL

RTL development articles