Yes this is what i meant. I'd expect that the sizeof(pointer) to return the
target architecture's pointer size, not the architecture of the compiler's
own executable.
On Wed, Nov 19, 2014 at 5:22 PM, Sven Barth
wrote:
> Am 19.11.2014 16:15 schrieb "Kostas Michalopoulos" <
> badsectorac...@gmail.
Am 19.11.2014 16:15 schrieb "Kostas Michalopoulos" :
>
>
> On Mon, Nov 10, 2014 at 4:07 PM, Michael Van Canneyt <
mich...@freepascal.org> wrote:
>>
>>
>> For a cross-compiler, sizeof(pointer) <> sizeof(pointer on target arch)
>
>
> So wait, the following code:
>
> {$if sizeof(pointer)=8} Code1 {$e
On 19 Nov 2014, at 16:15, Kostas Michalopoulos wrote:
On Mon, Nov 10, 2014 at 4:07 PM, Michael Van Canneyt
wrote:
For a cross-compiler, sizeof(pointer) <> sizeof(pointer on target
arch)
So wait, the following code:
{$if sizeof(pointer)=8} Code1 {$elseif sizeof(pointer)=4} Code2
{
On Mon, Nov 10, 2014 at 4:07 PM, Michael Van Canneyt wrote:
>
> For a cross-compiler, sizeof(pointer) <> sizeof(pointer on target arch)
>
So wait, the following code:
{$if sizeof(pointer)=8} Code1 {$elseif sizeof(pointer)=4} Code2 {$endif}
will evaluate Code1 for a FPC compiler that is itself
Am 10.11.2014 um 16:58 schrieb Jonas Maebe:
>
> Steve Hildebrandt wrote on ma, 10 nov 2014:
>
>> Sry I should have mentioned I'm currently working on the compiler and
>> I'm not to sure if I can use OS_ADDR for RTTI generation.
>
> If you want a tcgsize, use def_cgsize(voidcodepointertype) for
> re
Steve Hildebrandt wrote on ma, 10 nov 2014:
Sry I should have mentioned I'm currently working on the compiler and
I'm not to sure if I can use OS_ADDR for RTTI generation.
If you want a tcgsize, use def_cgsize(voidcodepointertype) for
references to code and def_cgsize(voidpointertype) for r
Am 10.11.2014 um 15:55 schrieb Jonas Maebe:
>
> Steve Hildebrandt wrote on ma, 10 nov 2014:
>
>> How oder where is the addres size for the current compiler target
>> defined?
>
> See the last three entries in table G.2. at
> http://www.freepascal.org/docs-html/prog/progap7.html
>
> Alternatively, y
On Mon, 10 Nov 2014, Jonas Maebe wrote:
Steve Hildebrandt wrote on ma, 10 nov 2014:
How oder where is the addres size for the current compiler target defined?
See the last three entries in table G.2. at
http://www.freepascal.org/docs-html/prog/progap7.html
Alternatively, you can use
{$
Steve Hildebrandt wrote on ma, 10 nov 2014:
How oder where is the addres size for the current compiler target defined?
See the last three entries in table G.2. at
http://www.freepascal.org/docs-html/prog/progap7.html
Alternatively, you can use
{$if sizeof(pointer)=8}
<64 bit pointe
How oder where is the addres size for the current compiler target defined?
mfg Steve
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
10 matches
Mail list logo