Next: , Previous: Commands, Up: Top


5 Extending the simulator

This chapter describes the procedure for providing user-defined functions through an external shared library module (or plug-in).

For this chapter (and in your own work) we strongly recommend including the following template Makefile in your own working Makefile:

     # "Makefile"
     include prefix/share/hackt/mk/hackt-lt.mk

where prefix refers to the base installation path of the tools. This Makefile template simplifies compilation and linking tremendously, and also provide suffix compilation rules for HAC object files. We will refer to some definitions found in hackt-lt.mk throughout this section.