Path: utzoo!utgpu!water!watmath!clyde!att!alberta!ubc-cs!uw-beaver!cornell!mailrus!ames!pasteur!ucbvax!wb3ffv.UUCP!uucp From: uucp@wb3ffv.UUCP Newsgroups: comp.lang.modula2 Subject: Warning From uucp Message-ID: <8808182359.AA14815@wb3ffv.UUCP> Date: 20 Aug 88 01:31:52 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Info-Modula2 Distribution ListOrganization: The Internet Lines: 79 We have been unable to contact machine 'sarin' since you queued your job. sarin!mail eric (Date 08/17) The job will be deleted in several days if the problem is not corrected. If you care to kill the job, execute the following command: uustat -ksarinN0ede Sincerely, wb3ffv!uucp ############################################# ##### Data File: ############################ >From aplcen!mimsy!rutgers!ucf1vm.bitnet!INFO-M2 Wed Aug 17 13:19:40 1988 remot e from wb3ffv Received: by wb3ffv.UUCP (Smail-2.5) id AA02441; 17 Aug 88 13:19:40 EDT (Wed) Received: by mimsy.UMD.EDU (smail2.5) id AA03923; 17 Aug 88 08:12:44 EDT (Wed) Received: from AJPO.SEI.CMU.EDU by rutgers.edu (5.59/1.15) id AA16598; Wed, 17 Aug 88 06:32:33 EDT Received: from cunyvm.cuny.edu by decwrl.dec.com (5.54.5/4.7.34) id AA27672; Wed, 17 Aug 88 03:05:28 PDT Received: from BITNIC.BITNET by CUNYVM.CUNY.EDU (IBM VM SMTP R1.1) with BSMTP id 8535; Wed, 17 Aug 88 02:18:14 EDT Received: by BITNIC (Mailer X1.25) id 4591; Wed, 17 Aug 88 02:18:09 EDT Return-Path: Received: from ucbvax.berkeley.edu by jade.berkeley.edu (5.54 (CFC 4.22.3)/1.16.18B) id AA00741; Tue, 16 Aug 88 23:01:46 PDT Received: by ucbvax.Berkeley.EDU (5.59/1.30) id AA24365; Tue, 16 Aug 88 19:28:23 PDT Received: from USENET by ucbvax.Berkeley.EDU with netnews for info-m2@ucf1vm.bitnet (info-modula-2@ucf1vm.bitnet) (contact usenet@ucbvax.Berkeley.EDU if you have questions) Organization: National Semiconductor (IC) Ltd, Israel Message-Id: <2107@ima.ISC.COM> Date: Thu, 11 Aug 88 10:09:14 GMT Reply-To: Info-Modula2 Distribution List Sender: Info-Modula2 Distribution List Comments: Warning -- original Sender: tag was editor%ucf1vm.BITNET@JADE.BERKELEY.EDU From: Rick Pelleg Subject: Size of enumerations/subranges in Modula-2 Comments: To: info-modula-2@ucf1vm To: "(no name)" We have written a Modula-2 compiler which produces code for the NS32000 family of CPUs. One problematic implementation issue is that of the size of enumeration types and subrange types. The two possibilities are: 1. An enumeration/subrange occupies the least possible amount of bytes (the NS32000 are byte addressable machines). 2. An enumeration/subrange always occupies four bytes (a double-word). This is the "natural" size on the NS32000. The issue is the usual "speed vs. space" tradeoff. The first possibility of course saves space, but is slower whenever doing mixed sized calculations or array indexing, because of the conversions that must be done. Any opinions about this issue? In particular, I am interested in the following two questions: 1. How do Modula-2 compilers you know implement enumerated types and subranges? 2. How would you like to see them implemented? I'll summarize any interesting email I receive on the subject. Thanks, -- --- Rick Pelleg National Semiconductor (Israel) 6 Maskit st. P.O.B. 3007, Herzlia 46104, Israel Tel. (972)52-522264 rick%taux01@nsc.com @{hplabs,pyramid,sun,decwrl} -- Send compilers articles to ima!compilers or, in a pinch, to Levine@YALE.EDU Plausible paths are { ihnp4 | decvax | cbosgd | harvard | yale | bbn}!ima Please send responses to the originator of the message -- I cannot forward mail accidentally sent back to compilers. Meta-mail to ima!compilers-request