Hi
W are using the compiler on an embedded Arm7 platform (no
operating system). Now we have run into this problem.
We want to define an absolute address, to a specific register.
It seems that, if the absolut address exceeding $FFFFF000 then we
get the error.



OK      Compiling goes OK.
********************************************
Var
  VICDefVectAddr : Pointer Absolute $EFFFF034;    ß ß ß ß

Procedure UartInterrupt;
begin
end;

Begin
  VICDefVectAddr := @UartInterrupt;
End.

ERROR           Compiling goes Wrong.
********************************************
Var
  VICDefVectAddr : Pointer Absolute $FFFFF034;  ß ß ß ß

Procedure UartInterrupt;
begin
end;

Begin
  VICDefVectAddr := @UartInterrupt;
End.
********************************************
ERROR TEXT :
Free Pascal Compiler version 2.0.0 [2005/05/15] for arm
Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Linux for ARM


Assembling com
com.s: Assembler messages:
com.s:183: Error: register expected, not 'INVALID,#-4044]' -- `str
r0,[INVALID,#-4044]'
com.pas(8,10) Error: Error while assembling exitcode 1
com.pas(8,10) Fatal: There were 2 errors compiling module,
stopping
com.pas(1,26) Error: Compilation aborted
------
The compiler call
/ArmBin/ppcarm -S2 -al -XX com.pas

Regards
Carsten

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to