[comp.lang.modula2] ROM'ing JPI M2

Cobus.Debeer@p0.f1.n491.z5.fidonet.org (Cobus Debeer) (03/25/91)

After spending a few hours getting a two module programs into ROM I 
thought it wise to alert others out there of two items which is not 
stated in the manuals.  It is very important to have the pragma 
const_in_code => on in all modules, even if they don't explicitly use 
string or real constants.  The libraries need to be re-made with this 
pragma added to all the modules.  If this pragma is not included the 
code that sort the initialization code for the various modules fails 
and loops forever.
 
Some versions of the compiler ( V2 ) contain a file called INITSYS.a 
while others contain a file called INITESYS.a .  The second file seems 
to be a corrected version of the first one.  The difference is that the 
incorrect versions do not initialize the stach segment and stack 
pointer and this causes the initialization code to fail.
 
I hope this helps a few people out there.
 
Regards
 
Cobus de Beer.



--  
uucp: uunet!m2xenix!puddle!5!491!1.0!Cobus.Debeer
Internet: Cobus.Debeer@p0.f1.n491.z5.fidonet.org