🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3385

Re: SIZE function for FST (DOS) compiler?

#3385
From: Georg Lokowandt
Date: Mon, 18 Mar 1996 14:38
34 lines
1998 bytes
In article <4iitag$ai7@usenet.srv.cis.pitt.edu> jesst63+@pitt.edu (Jeffrey E Stoner) writes:
>Ronald Snelgrove (ronald@newton.physics.BrockU.CA) wrote:
>: To anyone using the Fitted Software Modula-2 compiler for DOS:
>:   I have already looked through all of the definition modules for this and
>: couldn't find it, so I'm hoping that I have just missed it.  I was wondering
>: if there was a function that when given a data type, would return  the number
>: of bytes required to store that type, ie SIZE(INTEGER) would return 2.  This
>: would be the equivalent to the TSIZE function on the Macintosh MetroWerks
>: compiler, if that helps anyone.  

Just import the functions SIZE and/or TSIZE from the Pseudo-Module SYSTEM (not System).
I don't have the differences at hand, but they both exist.


>
>Well, in the manual, pages 21-22 lists the amount of storage for each data
>type.  Simply count 'em up.

Please don't do that, your programm will get very machine and compiler dependent

>
>Jeff
>
>-- 
>   *  internet-->  jesst63+@pitt.edu             * This space reserved  *
>   *  http://www.pitt.edu/~jesst63               * for something much   *
>   * "I am outcast, unclean." - Thomas Covenant  * better to come along *

Georg
-- 
Georg Lokowandt  phone: 0711-7816-208  fax: 0711-7816-340
e-mail: lokowand@dia.informatik.uni-stuttgart.de
mail: Universitaet Stuttgart
      Breitwiesenstr. 20-22    70565 Stuttgart    Germany
Technical Details
Message-ID: <4ijsgq$3ct@zdi.informatik.uni-stuttgart.de>
Path: arc1-ca.pugleaf.net!news.informatik.uni-stuttgart.de!news
References: <1996Mar17.041332.11054@spartan.ac.BrockU.CA> <4iitag$ai7@usenet.srv.cis.pitt.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.informatik.uni-stuttgart.de!news
From: lokowand@dia.informatik.uni-stuttgart.de (Georg Lokowandt)
Newsgroups: comp.lang.modula2
Subject: Re: SIZE function for FST (DOS) compiler?
Date: 18 Mar 1996 14:38:18 GMT
Organization: IfI, Univ. Stuttgart, W-Germany
Message-ID: <4ijsgq$3ct@zdi.informatik.uni-stuttgart.de>
References: <1996Mar17.041332.11054@spartan.ac.BrockU.CA> <4iitag$ai7@usenet.srv.cis.pitt.edu>
Reply-To: lokowand@dia.UUCP (Georg Lokowandt)
NNTP-Posting-Host: dia.informatik.uni-stuttgart.de