riza.guntur

BRT_PERMIT_READ_WRITE_ALIASING why not recommended?

Discussion created by riza.guntur on Aug 18, 2009
Latest reply on Aug 20, 2009 by riza.guntur

Like the explanation given:

•  The runtime enforces the rule given in the Brook+ language specification that makes it illegal to bind
the same stream for both reading and writing. For compatibility with existing code, this type of aliasing
is permitted if the environment variable BRT_PERMIT_READ_WRITE_ALIASING is defined. 
•  We do not recommend this for new code because unpredictable results can   occur without a detailed
understanding of the underlying hardware architecture. 
o  The maximum size of a stream is 2
26
 elements. 

Is there any detailed explanation?

Outcomes