Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!cbmvax!cbmehq!cbmger!peterk From: peterk@cbmger.UUCP (Peter Kittel GERMANY) Newsgroups: comp.sys.amiga.advocacy Subject: Re: re^4:what to buy??(numbercruncher) Message-ID: <1400@cbmger.UUCP> Date: 21 Jun 91 12:36:36 GMT References: <50862@ut-emx.uucp> <76@ryptyde.UUCP> Reply-To: peterk@cbmger.UUCP (Peter Kittel GERMANY) Organization: Commodore Bueromaschinen GmbH, West Germany Lines: 25 In article <76@ryptyde.UUCP> dant@ryptyde.UUCP (Daniel Tracy) writes: >Responding to the following: > >>Question: Since on a MAC you need to specify the size of an application >>(in the INFO window) does it still give an out of memory error if it needs >>more than that size, even with Virtual Memory? (That seems stupid) > >Question: Does the Amiga have Dynamic Memory Allocation? Yes, I think it has (if you don't mean *virtual* memory?). Any application can look how much memory is left and can allocate it if necessary. (Or it just tries to allocate and checks for success.) So, a really well-behaved Amiga program will allocate only little memory on first start (so that others can comfortably live in parallel with it) and will allocate after that only as much as is really needed. You see a faint attempt for this e.g. in AmigaBasic. By default it opens with only 25 K for program and variable space, and it's up to the program to use the CLEAR instruction to gain more space. (If you have a Basic source that already exceeds the 25 K, you must write a 2-line loader program that does a big enough CLEAR and then loads (in fact RUNs) the real program, clumsy but working.) -- Best regards, Dr. Peter Kittel // E-Mail to \\ Only my personal opinions... Commodore Frankfurt, Germany \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk