[next] [tail] [up]

#### Exporting functions

When exporting functions from a library, there are 2 things you must take in account:

1. Calling conventions.
2. Naming scheme.

The calling conventions are controlled by the modifiers cdecl, popstack, pascal, safecall, stdcall and register. See section 6.3, page 240 for more information on the different kinds of calling scheme.

The naming conventions can be controlled by 2 modifiers in the case of static libraries:

- cdecl
- alias

For more information on how these different modifiers change the name mangling of the routine section 6.2, page 231.

Remark:If you use in your unit functions that are in other units, or system functions, then the C program will need to link in the object files from these units too.

[next] [front] [up]