Re: [fpc-devel] x86_64-linux-as not found

2014-08-22 Thread Tomas Hajny
On Thu, August 21, 2014 15:02, Leonardo M. Ramé wrote: Hi, Hi, I'm using XUbuntu 14.04 and it seems that x86_64-linux-as is not installed, do you know which package contains that file?. . . I assume that you use the 32-bit compiler (ppc386) and your Linux installation is a 64-bit one,

Re: [fpc-devel] Newbie question: how does the compiler know the class type of an object ( the Is operator)

2014-08-22 Thread Dennis Poon
Howard Page-Clark wrote: program Project1; uses classes; begin WriteLn('InstanceSize of TObject=',TObject.InstanceSize); ReadLn; end. I tried and it says the instancesize is 4 (on win 32 bit). My question actually was how does the as and is get the class type of an object. So, does

Re: [fpc-devel] Newbie question: how does the compiler know the class type of an object ( the Is operator)

2014-08-22 Thread Ewald
On 08/22/2014 07:53 PM, Dennis Poon wrote: Howard Page-Clark wrote: program Project1; uses classes; begin WriteLn('InstanceSize of TObject=',TObject.InstanceSize); ReadLn; end. I tried and it says the instancesize is 4 (on win 32 bit). My question actually was how does the as and

Re: [fpc-devel] Newbie question: how does the compiler know the class type of an object ( the Is operator)

2014-08-22 Thread Sven Barth
On 22.08.2014 19:53, Dennis Poon wrote: Howard Page-Clark wrote: program Project1; uses classes; begin WriteLn('InstanceSize of TObject=',TObject.InstanceSize); ReadLn; end. I tried and it says the instancesize is 4 (on win 32 bit). My question actually was how does the as and is get

Re: [fpc-devel] Newbie question: how does the compiler know the class type of an object ( the Is operator)

2014-08-22 Thread Sven Barth
On 22.08.2014 20:54, Ewald wrote: Also, to get a better idea of the size of a TObject in memory, SizeOf(TVmt) will get you started? SizeOf(TVmt) will not help, because each class instance of a specific class has only a pointer to the shared Vmt (thus a PVmt). Regards, Sven