current stable:
0.99.6
unstable:
cvs (0.99.7)
General
  Home / News
  About
  Contact
  The Team

Obtaining
  Download
  Source Tarball
  CVS Web View
  Misc. Files

Documentation
  Introduction
The Manual
  Download [html]
  Download [pdf]
  View Online
API
  Download [html]
  View Online
Resources
  Script Examples

Developer
  Introduction
Developer Guide
  Download [html]
  Download [pdf]
  View Online
Ferite C API
  Download [html]
  View Online




Open Source Approved

SourceForge Logo
KwMap.net - browse the Keyword Map of ferite.org

[previous] Creating Basic Modules[up][toc]Builder [next]


Chapter 3. Creating Native Modules

Introduction

Note: This is a particularly complex section, covering a lot of intertwined concepts. You should read it straight through at least once before attempting anything on your own. It may help to read it multiple times, as certain concepts are mentioned long before they are fully explained.

A native module is a ferite module that contains native code to interface with the surrounding system. This can be of two main forms, a mix of both native code and ferite script [which is how the base modules for ferite are written] or they can be completely made up of native code.

The first type of native modules are written in ferite-c files, which are denoted by the .fec extension. When they are fully built, they can create either C libraries or shared objects that contain the native C code. In most cases, the .fec file is still necessary, as it may contain non-native code. These modules are partially auto-generated by using the builder command line tool [which comes with ferite] and are discussed from the next section onwards.

Modules that do not require the ferite-c file at runtime are dicussed later, after the builder tool and accessing the internals of ferite has been dicussed. This is due to the fact that they are harder to write and require knowledge of the ferite internals.



[previous] Creating Basic Modules[up][toc]Builder [next]
ferite et al © 2000-2004, Chris Ross