Cross Compiler FAQs

Cross Compiler Frequently Asked Questions (Toggle all items)

What are the advantages of module and function static variables in an embedded application ?

Module and function static variables combine the aspect of hiding for other parts of the program (reduced visibility scope in comparison with global variables) with a fixed memory location ...

The last aspect allows inspection of the variable even when the instruction pointer is in a foreign scope. Universal Debug Engine supports this feature.

What is the benefit of data type enum instead of integer ?

Size and speed of the target program is not influenced if you use a data type enum instead of integer.

The benefit is the symbolic background. Instead of numbers enums tell in a text form about states and values of the target program. UDE supports the text display of enums in Locals and Watch window. To change enums a context menu offers all possible values also in textual form.