Difference between revisions of "RTL/ja"
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 ...) |
m |
||
Line 5: | Line 5: | ||
Free Pascal ランタイムライブラリ (RTL) | Free Pascal ランタイムライブラリ (RTL) | ||
− | + | ''ランタイムライブラリ''は、[[Application/ja|アプリケーション]の環境依存部分を吸収するために生成したり、コンパイラがアプリケーションにインクルードしたりするのに使われる、いくつかの[[Source code/ja|ソースコード]ファイルです。 | |
− | *[[Initialization]] | + | 次の目的のために使われます: |
− | *[[Initialization]] | + | *ユーザーアプリケーションを実行する前に、ランタイムライブラリそのものを初期化[[Initialization]] するために使われます。 |
− | * | + | *アプリケーションを初期化[[Initialization]]して実行 [[startup]]します。 |
− | * | + | *標準パスカル関数をアプリケーションに提供します。(例えば、[[Write]] や [[Writeln]]などの標準関数 [[standard function]]です。) |
− | * | + | *コンパイラのインライン[[inline]]では提供されない、(例えば特別な数学関数のような)ライブラリ関数[[library function]]を提供します。 |
− | * | + | *拡張パスカル関数[[extended function]]をアプリケーションに提供します。(例えば、ファイル変数[[file variable]]に外部ファイル[[external file]]を割り当てる[[Assign]]関数など) |
+ | *標準パスカル関数や拡張パスカル関数のI/Oに対して、適切なローカルのリソースを割り当てます。(例えば、ウインドウシステム環境においては、Writeやwriteln文のファイル変数がウインドウを示すようになっているなら、そのように変更します。テキスト環境でターミナルを示す場合や、外部ファイルに割り当てる場合なども同様です) | ||
− | == | + | == 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. | 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. | ||
Revision as of 00:29, 20 July 2008
│
Deutsch (de) │
English (en) │
español (es) │
français (fr) │
Bahasa Indonesia (id) │
日本語 (ja) │
русский (ru) │
Free Pascal ランタイムライブラリ (RTL)
ランタイムライブラリは、[[Application/ja|アプリケーション]の環境依存部分を吸収するために生成したり、コンパイラがアプリケーションにインクルードしたりするのに使われる、いくつかの[[Source code/ja|ソースコード]ファイルです。 次の目的のために使われます:
- ユーザーアプリケーションを実行する前に、ランタイムライブラリそのものを初期化Initialization するために使われます。
- アプリケーションを初期化Initializationして実行 startupします。
- 標準パスカル関数をアプリケーションに提供します。(例えば、Write や Writelnなどの標準関数 standard functionです。)
- コンパイラのインラインinlineでは提供されない、(例えば特別な数学関数のような)ライブラリ関数library functionを提供します。
- 拡張パスカル関数extended functionをアプリケーションに提供します。(例えば、ファイル変数file variableに外部ファイルexternal fileを割り当てるAssign関数など)
- 標準パスカル関数や拡張パスカル関数のI/Oに対して、適切なローカルのリソースを割り当てます。(例えば、ウインドウシステム環境においては、Writeやwriteln文のファイル変数がウインドウを示すようになっているなら、そのように変更します。テキスト環境でターミナルを示す場合や、外部ファイルに割り当てる場合なども同様です)
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, detailed description of individual units and included routines is available in RTL unit reference manual provided as part of FPC extensive documentation.
Using RTL
Some problems using the crt and the video units with unix terminals are described here: Terminal & Fonts
Read about the API units (Video/Mouse/Keyboard) and the Crt Unix, the bigger picture in KVM API and Crt future
The windows interface units have an own page here