[previous] [up] [next]     [contents] [index]
Next: mzc Is Not... Up: mzc Is... Previous: Byte Code Compilation

Native Code Compilation

A native code file is a platform-specific shared library. Under Windows, native code files use the extension .dll. Under Unix and MacOS, native code files typically use the extension .so.

Native code files are loaded into MzScheme with the load-extension procedure (see dynamic extensions in PLT MzScheme: Language Manual).

Native code compilation produces C source code in an intermediate stage; your system must provide an external C compiler to produce native code. The mzc compiler cannot produce native code directly from Scheme code.

Except for MacOS, the C compiler and compiler flags used by mzc can be adjusted via command line flags.



PLT