Package Specific Compiler Directives

The following table lists package-specific compiler directives that can be inserted into source code. Package-specific compiler directives

Directive

Purpose

{$IMPLICITBUILD OFF)

Prevents a package from being implicitly recompiled later. Use in .dpk files when compiling packages that provide low-level functionality, that change infrequently between builds, or whose source code will not be distributed.

{$G-} or {$importeddata off} Disables creation of imported data references. This directive increases memory-access efficiency, but prevents the unit where it occurs from referencing variables in other packages.

{$WEAKPACKAGEUNIT ON}

Packages unit weakly.

{$DENYPACKAGEUNIT ON}

Prevents unit from being placed in a package.

{$DESIGNONLY ON}

Compiles the package for installation in the IDE. (Put in .dpk file.)

{$RUNONLY ON}

Compiles the package as runtime only. (Put in .dpk file.)

Including {$denypackageunit on} in source code prevents the unit file from being packaged. Including {$g-} or {$importeddata off} may prevent a package from being used in the same application with other packages.

Other compiler directives may be included, if appropriate, in package source code.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment