🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #724

Re: How to make libraries smaller?

#724
From: Jens Tingleff
Date: Wed, 30 May 1990 09:32
29 lines
1599 bytes
RCAPENER@cc.utah.edu writes:

[.......]

>								 But will
>variables be the SAME variables in all the modules that import it, or
>will they be DIFFERENT?  It seems to me that it will be the latter,
>since the storage space will be allocated seperately each and every
>time you compile the object files that import it.  

Ehhrmm, why ? 

This is such a silly restriction that I can't beleive it's in the language. 
Since I don't have my Wirth at the ready, all I can say is that
with a few tens of thousands of lines M-2 behind me, I'm merely 99.99 % sure
that variables are only allocated space ONCE (i.e. in the module where
they are defined, be it in connection with the compilation of the
IMPLEMENTATION or the DEFINITION module).

Since this is somp.lang.modula2, perhaps someone with a PIM2 at hand could
put us all at ease here ..... 



	Jens
jensting@diku.dk is
Jens Tingleff MSc EE, Research Assistent at DIKU
	Institute of Computer Science, Copenhagen University
Snail mail: DIKU Universitetsparken 1 DK2100 KBH O
Technical Details
Message-ID: <1990May30.093242.28237@diku.dk>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!freja.diku.dk!skinfaxe.diku.dk!jensting
References: <9005281240.AA07902@mathematik.uni-ulm.de> <66551@cc.utah.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!freja.diku.dk!skinfaxe.diku.dk!jensting
From: jensting@skinfaxe.diku.dk (Jens Tingleff)
Newsgroups: comp.lang.modula2
Subject: Re: How to make libraries smaller?
Message-ID: <1990May30.093242.28237@diku.dk>
Date: 30 May 90 09:32:42 GMT
References: <9005281240.AA07902@mathematik.uni-ulm.de> <66551@cc.utah.edu>
Sender: news@diku.dk (The Netnews System)
Organization: Department Of Computer Science, University Of Copenhagen
Lines: 29