Sign in Join

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

Mailing lists / fpc-pascal / 2007-06

some problem with assembler code generated by fpc for arm

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

josepascual

Hi everyone,

I try to compiling a pascal unit with fpc and It compiles okey for i386 but arm

with fpcrossarm compiling file show this two error:

Compiling luaobjects.pas
Assembling luaobjects
luaobjects.s: Assembler messages:
luaobjects.s:2078: Error: co-processor address must be word aligned -- `ldfd f0,[r0,#1]'
luaobjects.s:2306: Error: co-processor address must be word aligned -- `ldfd f0,[r0,#1]'

this error are due to next pascal line extracted from pascal file

line1)  eluaNumber  : Result := FLoatToStr(Value.LuaNumber);
line2)  eluaNumber  : Result := Round(Value.LuaNumber);

it seems there is some problem with Floattostr and round ( I have tried to compile this file with fpc for arm v2.1.4 and
v2.3.1

any suggestion?

thank you