[comp.sys.amiga.advocacy] Large data sets

bcphyagi@csunb.csun.edu (Stephen Walton) (03/06/91)

In article <1991Mar3.232107.1675@bilver.uucp> alex@bilver.uucp (Alex Matulich) writes:
>
>I didn't know that the Amiga graphics package was device-independent.  In
>that case, I am impressed!  It's contouring algorithm must be extremely
>well-designed and optimized compared to the IBM GRAFTOOLS package.

I believe that to be the case.  PLPLOT is a lovely package.

>Here the plotter speed and the size of it's data buffer is the primary
>factor in the speed of the output.

You're certainly correct here, and I'll just have to take the time to
hook our HP plotter up to the Amiga's serial port and have a go.
>
>>Please tell me how to run the following loop under MSDOS:
>>...	[the following line done 512 times]
>>		z[i] = (float *) malloc(512 * sizeof(float));
>
>Easy.  The pointers must be declared as far or huge, and malloc() should
>be substituted with _fmalloc()

Under Microsoft C it is _hmalloc, but malloc is #define'd to this
when you use huge model.  That isn't the problem--the loop attempts to
allocate a megabyte of RAM.  Unless I spend $800+ on a 386-only C
compiler plus accompanying DOS extender, I can't get that much RAM.
--
Stephen R. Walton, Dept. of Physics and Astronomy, Cal State Northridge
bcphyagi@csunb.csun.edu until my Suns come back up