122-32000 Parallax Inc, 122-32000 Datasheet - Page 127

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MAXLEDS
of the available object. That value is used by
Behind the Scenes
In the object block, we created an array of six Output objects. Each object that an application
uses needs to be treated as its own individual entity with its critical data kept separate from
that of any other object. So, since we needed the capabilities of six Output objects, we
declared the need for six of them in the object block.
After compiling Blinker2, the Object View shows that there are six occurrences of the Output
object in our application; the “[6]” that appears to the right of the Output object image. This
is the Object View’s way of illustrating the structure of our application, indicated by Figure
3-16.
Does this mean our application grew by the size of the Output object times six? Fortunately,
the answer is no. The Propeller Tool optimizes the application’s code such that, for every
occurrence of an object only one copy of the object’s code is included, but multiple copies of
the object’s global variables are created. This is because the code is considered to be static
(unchanging) and exactly the same for each object. However, the object’s global variables
(defined in its
work independently without interference from other instances of itself.
, and the outer loop will terminate, causing the
VAR
block), are not static; each object needs its own variable space in order to
Main
to select the right
NextObject
Figure 3-16:
Blinker2 Application
There are six
instances of the
Output object. The
application actually
uses only one copy of
its executable code
and six copies of its
global variable space.
Propeller Manual v1.0 · Page 127
method to return the
LED
object to start.
Index

Related parts for 122-32000