Undelivered mail

MAILER%ALASKA.BITNET at CUNYVM.CUNY.EDU MAILER%ALASKA.BITNET at CUNYVM.CUNY.EDU
Sun Mar 13 06:48:09 AEST 1988


Subject:  Re: Pascal --> C question

[Non-Deliverable:  User does not exist or has never logged on]

Reply-To: Info-C at BRL.ARPA

Received: From UWAVM(MAILER) by ALASKA with Jnet id 8306
          for SXJVK at ALASKA; Sat, 12 Mar 88 11:30 AST
Received: by UWAVM (Mailer X1.25) id 5593; Sat, 12 Mar 88 12:29:18 PST
Date:         Fri, 11 Mar 88 18:40:35 GMT
Reply-To:     Info-C at BRL.ARPA
Sender:       Info-C List <INFO-C at NDSUVM1>
Comments:     Warning -- original Sender: tag was netnews at psuvax1.psu.EDU
From:         Scott Schwartz <schwartz at gondor.cs.psu.EDU>
Subject:      Re: Pascal --> C question
Comments: To: info-c at brl-smoke.arpa
To:           Vic Kapella <SXJVK at ALASKA>

In article <760 at cresswell.quintus.UUCP> ok at quintus.UUCP (Richard A. O'Keefe)
 writes:
>In article <3353 at psuvax1.psu.edu>, schwartz at gondor.cs.psu.edu (Scott Schwartz)
 writes:
>> So in the
>> example I gave each boolean would take up one bit, and there would be
>> 1024 of them, the whole array taking up 128 bytes.

>The trouble is that a Pascal compiler is absolutely free to ignore
>'packed' entirely.  When you say
>    var a: array [0.1023] of boolean;
>you have no guarantee at all that the compiler won't use 1024 "words".

Right.  Lots of (bad) compilers ignore "packed", just like some C
compilers ignore "register".   For the purpose of argument I was
assuming a decent pascal compiler.  The University of Sheffield, for
example, sells a pascal compiler for Prime 50 series machines that
implements "packed" down to the bit level.  There's nothing like
automatically taking advantage of your instruction set.

Anyway, enough pascal talk.  On to the next comp.lang.c topic!

-- Scott Schwartz                       | Your array may be without head or
        schwartz at gondor.cs.psu.edu      | tail, yet it will be proof against
                                        | defeat.  -- Sun Tzu, "The Art of War"



More information about the Comp.lang.c mailing list