[fpc-devel] Address size compiler
Steve Hildebrandt
Steve.Kassel at web.de
Mon Nov 10 17:24:32 CET 2014
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
> references to code and def_cgsize(voidpointertype) for references to
> data.
>
> If you want to create an initialised data entry, use
> tai_const.Create_nil_codeptr/Create_nil_dataptr for nil code/data
> pointers, tai_const.Create_int_codeptr/Create_int_dataptr for
> code/data pointers with an absolute value known at compile time, or in
> case you have a symbol name, use
> tai_const.createname/createname_global with either AT_FUNCTION or
> AT_DATA depending on whether it's code or data (and depending on
> whether it's a global symbol or not, which you can determine via
> tabstractnormalvarsym.globalasmsym, or via "po_public in
> procdef.procoptions" for a procdef)
>
>
> Jonas
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
Thanks def_cgsize(voidcodepointertype) was what I was looking for.
Steve
More information about the fpc-devel
mailing list