Page 1 of 1

Target CPU

Posted: 21 March 2006, 14:22 PM
by twesthoff
How in the IDE do you specify which ZX chip you are compiling for? (ZX-24, ZX-40, ZX-44)

Posted: 21 March 2006, 17:31 PM
by dkinzer
This can be done either using a compiler option (on the command line or at the top of your project file) or by using an option directive in the first file that is compiled (the first one in the project file), usually the one containing Main().

To use the compiler option, place a line like the following in your project file before any of the files to be compiled:

Code: Select all

--target-CPU=ZX44
To use the option directive, place a line like the following in the first file listed in your project file:

Code: Select all

Option TargetCPU ZX44
The full set of compiler options and option directives is described in their respective sections of the Language Reference Manual.