[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

2456.0. "mutter mutter curse mutter" by NZOV01::MCKENZIE (Support your right to arm bears) Sun Apr 09 1989 23:04

Hi folks - Got a little bit of info that I'd like your opinions on...

I have recently been using My A500 (expanded to 1MB with external drive)
to write a relational database for my local Paintball Social club. 
I have modulized my code and have purchased AC-BASIC to compile each
completed module into an Object file.

Recently I started getting "Out of memory" errors whilst writing 
my programs via the Amigabasic interpreter. As usual the Manual was
a big help! - I checked free memory - that seemed to be fine. Also
there was sufficient heap and stack space. The programs I am writing
are mabye 500-1000 lines apiece. I used to be able to fit that much
code on my TRS80 (32K) and I cant fit it on a 1MB machine??
I was really stumped...

I mentioned this problem to one of the fellas at the local Amiga store
and was told that there apparently is a bug with Amigabasic. When the
Interpretor is loaded it allocates something like 20K of work area then
whizzes around allocating memory for its own usage etc...
It doesnt check hardware to see exactly how much memory is REALLY 
available so you have this teeny little work area and a few hundred
lines of code later - ZAP!

Has anyone else ever heard of this? I was told that commodore had
been informed of the bug so if it IS true, anyone got any idea if
Commodore have released a "fixed" basic disk???

This has really ^%&%*%^&* me off! I have no C experience and only 
limited experiences with compiliers. Currently my only options are to

A/ Reduce size of programs by removing excess REM statements/spaces etc
B/ Modulise the code even MORE and link several modules together at 
   compile-time. 

Both options are a hassle.....are time consuming and annoying!!!

BTW: is anyone else as annoyed as I am with The guys who wrote the
     interpretor for the following:

     o a piddling little list window that you keep having to adjust
       (why not have the WB snapshot facility and save you favourite
       sizes etc to disk?)
     o various random interpretor crashes - especially with ILBM/ACBM
       type graphics. 
     o The good old "Illegal function call" error for no reason when you
       try and list a section of a program??? (random)

ALL USEFUL SUGGESTIONS ARE WELCOME!
    
    Phil "the frustrated amigabasic programmer"
    
T.RTitleUserPersonal
Name
DateLines
2456.1LEDS::ACCIARDISun Apr 09 1989 23:3010
    
    AmigaBASIC is a Microsoft product that traces it's roots to Macintosh
    BASIC.  The programmers did not even use smart refresh windows, which
    accounts for the remarkably slow window response times.
    
    I plan to buy either GFA Basic or HiSoft Basic.  GFA has been available
    for the Atari ST for some time now and has become the Basic language of
    choice for that machine.  Benchmarks show it to be quite fast.
    
    Ed
2456.2a curse on those programmers!NZOV01::MCKENZIESupport your right to arm bearsMon Apr 10 1989 01:3010
    re .-1
    
    whats GFA basic worth and how can I get a copy??
    
    is there a PAL compatible version available (geeze I get sick of
    asking that question!!)
    
    Thanks in advance Ed
    
    Phil
2456.3CLEAR should do the job...STOUT::MCAFEESteve McAfeeMon Apr 10 1989 09:381
    Doesn't the CLEAR function allocate a bigger memory space for you?
2456.4NZOV01::MCKENZIESupport your right to arm bearsMon Apr 10 1989 20:025
    no Clear allocates standard memory CLEAR [zzzzz],[yyyyyy] allocates
    zzzzzz part of that memory to stack and yyyyy part to heap space.

    no luck with this one I'm afraid
    
2456.5STOUT::MCAFEESteve McAfeeTue Apr 11 1989 10:078
    
    There was an adventure program some time ago written in AmigaBASIC.
    It was huge (>100,000 bytes).  Prior to loading it in the author
    stated that you had to do a CLEAR 0,75000 or something like that.
    This seemed to work for me at the time.  Of course something may
    have changed, I'm talking a year or two ago...
    
    - steve
2456.6 STACK ??YUPPY::GOLDSTEINTue Apr 11 1989 12:128
    	Here's my 2p's worth
    
    		What about STACK ?
    
    	Does this not clear memory for bigger programs (I remember reading
    a not on this before)
    
    		Steve G
2456.7more info...LEDS::ACCIARDIWed Apr 12 1989 02:0521
    
    OK, I found the ad for GFA Basic 3.0 in my latest AmigaWorld...page 61.
    
    GFA Basic is billed as a very fast interpreter with execution times
    comparable to C, easy access to all Amiga libraries, built-in editor
    with syntax checking, blah blah...
    
    GFA Basic was originally to by imported by Michtron (the product is
    actually from Germany), but apparently Michtron and GFA had some sort
    of falling out, so Antic Software is now the publisher.
    
    Meanwhile, Michtron is importing HiSoft Basic as the answer to
    everyone's prayers.  HiSoft is an integrated compiler and editor
    package that will compile your current AmigaBASIC programs.
    
    Guess I'll wait for a few magazine reviews, although I think that the
    GFA product has gotten rave reviews on the Atari ST.  I imagine that
    the Amiga version would be able to run the vast library of ST software
    created with GFA.
    
    Ed.
2456.8much appreciated - thank youNZOV01::MCKENZIESupport your right to arm bearsWed Apr 12 1989 06:338
    Ed - have you any idea how much these packages will cost...
    
    thank you very much for the time you have spent hunting this info
    up for me - I really appreciate it
    
    cheers
    
    Phil
2456.9LEDS::ACCIARDIWed Apr 12 1989 09:246
    
    Sorry, no pricing info available, so I suspect that they're not
    actually shipping yet.  Magazine ads typically start a few months
    before producst ship.
    
    Ed.
2456.10BAGELS::BRANNONDave BrannonWed Apr 12 1989 13:1523
    re:.4
    
    try the CLEAR command.  I had to do that to get it to handle some
    basic programs that worked just fine on a 640K ibmpc.
    
    The documentation on the CLEAR command for ibmpc Microsoft Basic says:
    CLEAR [,[n][,m]]
       where n is a byte count of the maximum number of bytes for the
       BASIC data segment, default is 65535.
         I believe for some strange reason, the default on the amiga
         version of Microsoft Basic is 24000.  I suspect that was due
         to the original amiga configuration shipping with only 256K
         RAM.
    
       m is the size of stack space
    
    re: GFA vs HiSoft BASIC
         I've seen great reviews of the HiSoft stuff.  Claims that it
    is much better than GFA.  Both are new to the Amiga market, will
    be interesting to see how good a job they do (can it be compatible
    with both ST BASIC and AmigaBasic?)
    
    -Dave   
2456.11PRICESMQOFS::LECOMPTEHubert LecompteWed Apr 12 1989 13:189
    
    Good day,
    	     from ABLE SUPPLIES latest listing:
    
    - GFA BASIC				$58.54
    - HISOFT BASIC PROFESSIONAL		$92.57

    Hubert.
    
2456.12on the shelfADODEM::MCGHIESun Apr 16 1989 04:344
    I thought I saw both Hisoft and GFA basics at the Software Shop in
    Worcestor Mass. a couple of weekends ago when I was there.
    
    As for Abel, mutter, mutter, mutter...!!!!!