AnsweredAssumed Answered

PE include files set their own DATA_SEG and do not restore to DEFAULT

Question asked by Anders Johansson on Oct 8, 2011
Latest reply on Oct 12, 2011 by Anders Johansson

PE V2.99 for HCS12X


It seems that PE include files set their own internal DATA_SEG with

"#pragma DATA_SEG_PrExpxyz_DATA"


The same goes for CODE_SEG.

CODE_SEG is restored to DEFAULT at the end of the include file,

which I believe is the correct clean up method


DATA_SEG however is not restored to DEFAULT

resulting in my own variables belonging to the PE data segment

and not to the DEFAULT segment which would be a reasonable assumption.


Assuming I am correct in my description above I will appreciate answers

from the PE staff, to the following questions:

* Why is the DATA_SEG is NOT restored at the end of the include files?

* Why are PE defined DATA_SEG names not visible in the prm file?

If I am incorrect in my description, please explain where my reasoning is at fault.


Thank you,

Anders J