Comments below.

-- Bhaskar

On Thu, 2004-11-04 at 12:07, Kevin Toppenberg wrote:
> Bhaskar,
> 
> I guess I thought that there was a separate version of
> each code module, so that these errors wouldn't occur.
> 
> Are you saying that even though the code has a non-GTM
> command in it, that it will never be executed because
> the code checks for version, and avoids that
> instruction?

[KSB] VistA is supposed to select the code for the right M
implementation at execution time.  I think there may be a small number
of modules for which VistA has different versions for the different M
implementations.  Perhaps someone who knows more about VistA can
comment.

> Will the compiler make an object file anyway if there
> is an error?  Or is my system continuing to use the
> old .o file?

[KSB] The GT.M compiler will make an object file anyway.  It is
certainly possible to throw at the compiler a program that is so
malformed that the compiler gives up.  In the VistA case of certain
lines of code that happen to be lines from other implementations of M,
the compiler issues an error message, flags the offending line as bad
and continues.

> I'm trying to figure this out for myself, but also
> trying to ensure that new users don't encounter
> troubling errors.

[KSB] In both SemiVivA and VivA, I always compile all routines before
packaging for distribution.  This ensures that these errors are not seen
at run time.

Note that to compile all routines, the expansion of 21,000 routine names
is too much for any Linux shell to handle.  So, assuming that I have the
source routines in something like /home/vista/OpenVistA0.4/r and want
the object routines to be in /home/vista/OpenVistA0.4/o, I would use
something like the following to compile all modules:

  source /usr/local/gtm/gtmprofile
  cd /home/vista/OpenVistA0.4/o
  find ../r -iname \*.m -print -exec $gtm_dist/mumps {} \;


***************************************************************************
This electronic mail transmission contains confidential and/or privileged information 
intended only for the person(s) named.  
Any use, distribution, copying or disclosure by another person is strictly prohibited.
***************************************************************************

NOTE: Ce courriel est destine exclusivement au(x) destinataire(s) mentionne(s) 
ci-dessus et peut contenir de l'information privilegiee, confidentielle et/ou 
dispensee de divulgation aux termes des lois applicables. Si vous avez recu ce message 
par erreur, ou s'il ne vous est pas destine, veuillez le mentionner immediatement a 
l'expediteur et effacer ce courriel.





-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
Hardhats-members mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to