Difference between revisions of "SCI/FreeSCI/Kernel hacking"
Jump to navigation
Jump to search
(Merging of the FreeSCI documentation. Page done.) |
(No difference)
|
Latest revision as of 01:25, 24 January 2009
Kernel hacking
Introduction
Kernel functions are the bridge between the abstract virtual machine, and the world of real programs. The VM may be able to solve RPN equations in the blink of an eye, but what good is this if it can't read input or produce output?[1]
All of the kernel functions are stored in src/core/kernel.c. Since kernel function mapping is done during runtime by string comparison, each kernel function and its name have to be registered in the array kfunct_mappers[]. Note that each version of the SCI interpreter (at least each pre-1.000.000 version) comes with one unidentified kernel function, which is handled by k_Unknown.
Notes
- ↑ It could be used to produce benchmarks.