Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
82 CHAPTER 4. CODE GENERATION<br />
are declared locally in the procedure ØÓÒ´µ. Iconic variables belong to the class ÀÓØ<br />
and all other variables belong to ÀÌÙÔÐ.<br />
4.1.1.2 Compiling and Linking in Windows NT or Windows 2000 Environments<br />
The next step is to compile and link this new program. In the Windows NT environment, Visual<br />
C++ is used for the compiling and linking. Example projects can be found in the directory<br />
±ÀÄÇÆÊÇÇ̱ÒÜÑÔÐ×ÒÔÔÒ¹ÒØ.<br />
If you want to use Parallel HALCON, you have to include the libraries ÔÖÐÓҺлºÐÐ<br />
and ÔÖÐÓÒÔԺлºÐÐ instead of ÐÓҺлºÐÐ and ÐÓÒÔԺлºÐÐ in<br />
your project (see the HALCON/C++ User’s <strong>Manual</strong> for more details).<br />
4.1.1.3 Compiling and Linking in UNIX Environments<br />
To compile and link the new program (called e.g. Ø×غÔÔ) in the case of UNIX, you can use<br />
the example ÑÐ which can be found in the directory °ÀÄÇÆÊÇÇÌ»ÜÑÔÐ×»ÔÔ by<br />
calling<br />
Ñ ÌËÌÈÊÇØ×Ø<br />
Alternatively, you can set the variable ÌËÌ ÈÊÇ in ÑÐ to Ø×Ø and then just type Ñ.<br />
You can link the program to the Parallel HALCON libraries by calling<br />
Ñ ÔÖÐÐÐ ÌËÌÈÊÇØ×Ø<br />
or just type Ñ ÔÖÐÐÐ if you set the variable ÌËÌ ÈÊÇ as described above.<br />
For more details see the HALCON/C++ User’s <strong>Manual</strong>.<br />
4.1.2 Optimization<br />
Optimization might be necessary for variables of class ÀÌÙÔÐ. This kind of optimization can<br />
either be done in <strong>HDevelop</strong> or in the generated C++ code. In most cases optimization is not<br />
necessary if you program according to the following rules.<br />
1. Using the tuple concatenation, it is more efficient to extend a tuple at the “right” side,<br />
like:<br />
Ì Ì¸ÆÛ℄<br />
because this can the transformed to<br />
̺ÔÔÒ´ÆÛµ<br />
in C++ and requires no creation of a new tuple, whereas<br />
<strong>HDevelop</strong> / 2000-11-16