Extending simulation - HACKT CHPSIM Manual
Description: HACKT CHPSIM Manual

Next: Event-driven Execution, Previous: Commands, Up: Top

## 4 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 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.