From: "Florian Klaempfl" <[EMAIL PROTECTED]>
2. The following code produces wrong assemler code:
var
i: DWORD;
begin
i:=PDWORD($1234);
end;
If you mean
i:=PDWORD($1234)^;
It's fixed now.
Yes. Thanks.
Yury.
___
fpc-devel maillist - fpc-de
Yury Sidorov wrote:
Hello,
1. Why SizeOf(integer) = 2 for ARM?
2. The following code produces wrong assemler code:
var
i: DWORD;
begin
i:=PDWORD($1234);
end;
If you mean
i:=PDWORD($1234)^;
It's fixed now.
The produced code for assignment is: ldr r0,[INVALID]
Yury Sidorov.
___
>>> 1. Why SizeOf(integer) = 2 for ARM?
>>
>> The size depends on the compiler mode. For objfpc and delphi modes it is
>> 4.
>
> Yes this is due compiler mode.
> Another question. Is it correct to keep SizeOf(integer)=2 in default fpc
> mode when most of current processors are 32bit and 64bit is co
1. Why SizeOf(integer) = 2 for ARM?
The size depends on the compiler mode. For objfpc and delphi modes it is
4.
Yes this is due compiler mode.
Another question. Is it correct to keep SizeOf(integer)=2 in default fpc
mode when most of current processors are 32bit and 64bit is coming?
Yury.
> Hello,
>
> 1. Why SizeOf(integer) = 2 for ARM?
The size depends on the compiler mode. For objfpc and delphi modes it is 4.
___
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel
Hello,
1. Why SizeOf(integer) = 2 for ARM?
2. The following code produces wrong assemler code:
var
i: DWORD;
begin
i:=PDWORD($1234);
end;
The produced code for assignment is: ldr r0,[INVALID]
Yury Sidorov.
___
fpc-devel maillist - fpc-devel@l