home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / atari / st / tech / 6772 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  3.6 KB

  1. Path: sparky!uunet!mcsun!sun4nl!cwi.nl!jhh
  2. From: jhh@cwi.nl (Jaap Henk Hoepman)
  3. Newsgroups: comp.sys.atari.st.tech
  4. Subject: Re: MODPAS
  5. Message-ID: <8694@charon.cwi.nl>
  6. Date: 21 Jan 93 10:21:01 GMT
  7. References: <1jkr65INNt1p@golem.wcc.govt.nz>
  8. Sender: news@cwi.nl
  9. Organization: CWI, Amsterdam
  10. Lines: 65
  11.  
  12. For your information,
  13.  
  14. I was rather pleased to hear that even someone not living in the Netherlands had
  15. heard of ModPas. It is a dialect resembling Pascal, but may be closer to Modula-2
  16. (I don't really know Module-2, so...). It is a language based on seperately
  17. compilable modules, that can access things declared in other modules if they
  18. are in that objects interface. It has been developed at the Twente University
  19. of Technology and the University of Groningen, both in the Netherlands.
  20.  
  21. I have used this language almost exclusively for my own programming tasks, for it
  22. allows VERY structured programming. Besides that, the compiler has been ported to
  23. different platforms (I know there are DOS-versions, and SUN-Unix versions too).
  24. The compiler itself compiles to intermediate abstract code first. They also 
  25. developed a code-generator-generator that will generate the code-generator for
  26. a specific hardware platform, giving a machine description of the hardware. 
  27. This code-generator tries to do a lot of optimizing.
  28.  
  29. Because of the code-generator-generator, porting is really easy (I did a port
  30. from a SUN version to a HP-UX version in less than two weeks, without prior
  31. knowledge of the internal workings of the compiler). It's a clean program.
  32.  
  33. Now for the bad part: the last version I obtained was 1.0, some three years ago.
  34. I registered as a user, and was supposed to hear of any new releases or other
  35. news, but no, nothing happened. I suppose there is no new version. I believe
  36. the program is PD, but I'd better check this at home. 
  37.  
  38. To warn you in advance, the compiler is VERY slow (it's a FIVE pass compiler).
  39. Also the actual code generated is not that fast either, because for some reason
  40. they have implemented a kind of shared module principle. This gives very small
  41. executables if you use a lot of standard modules that are already linked in the
  42. ModPas environment Shell (from which they then have to be called), but also
  43. incurs a huge overhead in calling functions from another module:
  44.     - first the base address of the module has to be fetched
  45.     - this module starts with a jumptable to all functions declared in it
  46.     - calling a function just does a jsr to the associated entry in the
  47.       jumptable
  48.     - from the jumptable you jump to the code of the function
  49. This seems to be unavoidable if you want to use shared modules, and do not
  50. want to resort to code modification (after one call to an external function, the
  51. actual code-address is substituted). But the optimizing code-generator somehow
  52. is able to balance the odds in most cases.
  53.  
  54. Also, there is not really much support for calling Atari-specific operating 
  55. system functions. There are some modules that interface to the O.S., but they
  56. are incomplete. I have a few modules interfacing to the AES/VDI, but they are
  57. not really stable (not part of the 'official' release, you know).
  58.  
  59. If you're interested, I may be able to supply you with a copy (if it's PD of
  60. course). I tried Archie to locate it, but it doesn't seem to be on any archive.
  61.  
  62. -- 
  63.  
  64.  
  65.             "  \/
  66.              \_ \
  67.              / \/ /
  68.              \ / /       
  69. _____________   /
  70.              |HHH
  71. _____________|HHH
  72.  
  73.  
  74. ===============================================================================
  75. Jaap-Henk Hoepman    "Yes, we've eaten up the silver when even food was
  76. jhh@cwi.nl                      against us"        Nick Cave
  77.