The built-in assembler allows you
to write assembler code within Object Pascal programs. It has the following
features:
· Allows
for inline assembly
· Supports all instructions found in the Intel Pentium III, SIMD, and the
AMD Athlon (including 3D Now!)
· Provides no macro support, but allows for pure assembler function
procedures
· Permits the use of Object Pascal identifiers, such as constants, types,
and variables in assembler statements
As an alternative to the built-in
assembler, you can link to object files that contain external procedures and
functions. See External
declarations for more information.
Note: If
you have external assembler code that you want to use in your applications, you
should consider rewriting it in Object Pascal or minimally reimplement it using
the inline assembler.
Assembler procedures and functions
内建的汇编程序编译器允许在Object
Pascal程序中编写汇编程序代码。它由如下特点:
· 允许内嵌汇编。
· 支持所有内建于Intel Pentium III、SIMD以及AMD Athlon(包括3D Now!)的指令。
· 不提供宏支持,但允许纯粹的汇编函数和过程。
· 允许使用Object Pascal标识符,如常量、类型和汇编程序语句中的变量等。
作为另一种替换形式,可以连接包含外部过程函数的对象文件。更多信息见外部声明。
注意: 如果想把已有的外部汇编程序代码用于应用程序,那么应当考虑在Object Pascal对其重写,或者至少要使用内嵌汇编程序对其重新实现。(即不做任何改动就可以直接使用的情况几乎不可能。)