Michael Van Canneyt wrote:
>> I think Carlo said sometime ago on the ROPS newsgroup that assembler is used
>> mostly for maintaining the call stack. In fact I don't think anything done
>> using assembler can't be done with normal Pascal code (if necessery it can
>> call into a unit of low-level primitives that will be implemend in
>> assembler, but those primitives would be easily portable among various CPU
>> architectures)
> 
> That is exactly what it does: there are 1 or 2 assembler routines, to create a
> correct call stack. You can't do this in Pascal. These 2 routines would be the
> only thing you need to port accross CPUs...

That's exactly the problem. Building such kind of stack frame to pass
parameters is simply not possible on other CPUs because they use usually
a much more complicated ABI involving registers etc.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to