Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2005-03

Absolute

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Carsten Bager

Hi
I have a problem with the following when I try to compile it with the ppcrossarm compiler. This error dos not show when I am doing a normal compile.
I have tried with version 1.9.4 and 1.9.9
Carsten

--------------
Program bb;
var
  test:integer absolute 0030;
Begin
End.
---------------
>

bb.pas(4.23) Error: absolute can only be associated with a var or const

Carsten Bager Bøvlingbjerg El-automatik Brørupvænget 10 7650 Bøvlingbjerg Tlf. +4597885222 Fax +4597885434 http://www.beas.dk
Carsten Bager

Hi
I have a problem with the following when I try to compile it with the ppcrossarm compiler. This error dos not show when I am doing a normal compile.
I have tried with version 1.9.4 and 1.9.9
Carsten

--------------
Program bb;
var
  test:integer absolute 0030;
Begin
End.
---------------
>

bb.pas(4.23) Error: absolute can only be associated with a var or const

Carsten Bager Bøvlingbjerg El-automatik Brørupvænget 10 7650 Bøvlingbjerg Tlf. +4597885222 Fax +4597885434 www.beas.dk The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: Beas_Logo_1cm.bmp Date: 4 May 2004, 12:14 Size: 15720 bytes. Type: Unknown
Florian Klaempfl
to Carsten Bager
Carsten Bager wrote 20 lines
Hi I have a problem with the following when I try to compile it with the ppcrossarm compiler. This error dos not show when I am doing a normal compile. I have tried with version 1.9.4 and 1.9.9 Carsten -------------- Program bb; var test:integer absolute 0030; Begin End. --------------- > > bb.pas(4.23) Error: absolute can only be associated with a var or const

Try with -S2; however I'am not sure if arm/linux supports "const" absolutes.

Show quoted text 32 lines
-- graphic *Carsten Bager* Bøvlingbjerg El-automatik Brørupvænget 10 7650 Bøvlingbjerg Tlf. +4597885222 Fax +4597885434 *www.beas.dk* ------------------------------------------------------------------------ The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: Beas_Logo_1cm.bmp Date: 4 May 2004, 12:14 Size: 15720 bytes. Type: Unknown ------------------------------------------------------------------------ _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Peter Vreman
to Carsten Bager: Hi I have a problem with the following when I try to compile it with the ppcrossarm…
Show quoted text 15 lines
Hi I have a problem with the following when I try to compile it with the ppcrossarm compiler. This error dos not show when I am doing a normal compile. I have tried with version 1.9.4 and 1.9.9 -------------- Program bb; var test:integer absolute 0030; Begin End. --------------- bb.pas(4.23) Error: absolute can only be associated with a var or const

What is a 'normal' compile? How do you know that a memory address is the same on for example an i386 and arm machine? The use of absolute to an address is only in the compiler for compatibility with old Dos. It should not be used (and needed) for other OS's like Linux (which is the only OS that we support for ARM).