| Re: .0
> The program is done with MetaComCos Pascal v2.04.05 wich sets the stack
> size to 4000 bytes (too darn low !!!)
Not that I know anything about MetaComCo Pascal, but Amiga programs usually
have nothing to do with setting up their own stack.
If the program is run from a CLI, the CLI allocates the stack. You can
control the size of the stack by giving the STACK CLI command (e.g.,
STACK 20000 for a 20,000 byte stack). The STACK command will cause the
CLI to allocate a stack of the desired size for all programs run
subsequently from that CLI.
If the program was run from the Workbench, the Workbench allocates
the stack. The Workbench decides how large of a stack to allocate
from the Stack entry in the tool's icon. Use the Info menu item
to set this value.
>so if anybody can tell me how to increase this stack size and how
>to make the program note/use an 020/030 and FPU(881/882) when available.
I don't know if there is any way to tell the compiler to generate
code specifically for a 68020 since I've never used MetaComCo Pascal.
However, there isn't that much difference between the 68000 and the 68020
that you could tell the difference.
Using the FPU is a different story. If you use Workbench 1.3, the system
will automatically use the FPU to calculate the results of any call the
the Amiga's math libraries. This should result in a speed increase
without the compiler doing anything special. However, this will not
be as fast as the compiler generating the floating point instructions
inline, as you will have the overhead of a subroutine call for every
floating point operation.
(Note that only double precision library operations use the FPU. The single
precision "Motorola Fast Floating Point" libraries use a number format
that is not supported by the '881 or '882.)
|
| If memory serves, MC Pascal doesn't fiddle with the stack info, so
you'll have to up it via stack.
Unfortunately, MC Pascal doesn't generate '020 code, hence it can't
trap the coprocessor direct. You can call the '881 via the supplied
libraries, or you could write your own using assembly.
Does MC Pascal have any type of inline feature? If it does, you can
generate the F-lines as inline code.
If you're serious about crunching numbers, and you want real '020 code
generation w/'881 in-linne support, you might try using Absoft FORTRAN.
AC/FORTRAN has these features. I recommend the product because I used
to work for them and did a lot of work on that compiler.
Good luck...
chris
|