Contents | Parent Topic | Previous Topic | Next Topic


12. Porting SCAM

These are some notes on porting parts of SCAM. You may want to write a serial port driver for your favourite system or make a front-end in another language than Perl. If that is the case, you should read this.


12.1. RASCaL

Part of the RASCaL library is platform dependent, the hardware layer to be exact. The hardware layer contains code that controls the serial port and so on.


12.2. The SCAM interpreter

All interpreter code is platform independent and written in ANSI C++. You will not need to port this.


12.3. Front-end

The front-end uses two named pipes and one normal pipe (using the open call in Perl). It is possible to use three named pipes and you may even have to do this if you want to make a front-end in another language.

There are no restrictions on what the front-end should look like or what it should do. You can make it as user-friendly or nice looking as you like.

If you want to make a front-end without using named pipes, for example because your operating system does not have them, you can try to integrate native code in the front-end. The nicest way is to use the RASCaL object files and not even use the scam files at all. In fact you will be rewriting SCAM in your favourite language. Of course this is a lot of work, and using the SCAM interpreter object files probably does not influence the efficiency very badly.


Contents | Parent Topic | Previous Topic | Next Topic