Recent

Author Topic: RTTI Invoke x86_64 and ARM  (Read 3883 times)

nasa

  • New Member
  • *
  • Posts: 21
RTTI Invoke x86_64 and ARM
« on: December 09, 2015, 07:06:30 pm »
Hi Guys.

I,d follow this thread "http://lists.freepascal.org/fpc-devel/2015-February/035377.html" and subsequent ones, and it looks like there is an implementation of RTTI that can Invoke methods by it´s name (string) just like Delphi RTTI.invoke() do. and seems to work for ARM processor too (Raspberry PI2).

Could someone say if it´s merged to fpc trunk? in which revision? or if  there is a schedule for that.

I´m looking for this functionality for a while and also tried to adapt some user versions of delphi objauto.pas to fpc but without sucess. i´m not a low level developer.

Thanks.

abouchez

  • Full Member
  • ***
  • Posts: 111
    • Synopse
Re: RTTI Invoke x86_64 and ARM
« Reply #1 on: December 09, 2015, 07:26:08 pm »
AFAIR this is just the beginning of the feature.
This is about having the RTTI for IInvokable interfaces.
At the same level than Delphi 6 - we are not speaking of the Delphi "enhanced RTTI" available since Delphi 2010.

It is not merged to the trunk yet.
We asked for it again last week.
And it would eventually be merged. ;)

Then you would need an "Invoke" feature.
We developed our on "Invoke" stubs for x86 and x64, in our Open Source https://github.com/synopse/mORMot/blob/master/SQLite3/mORMot.pas
You may use it as a start point.

nasa

  • New Member
  • *
  • Posts: 21
Re: RTTI Invoke x86_64 and ARM
« Reply #2 on: December 14, 2015, 12:30:56 pm »
Hi abouchez

I´ll take a look on it and try to understand. as i said, i´m not very comfortable with this level of development

Thank you very much.

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: RTTI Invoke x86_64 and ARM
« Reply #3 on: December 15, 2015, 09:39:17 am »
Could someone say if it´s merged to fpc trunk? in which revision? or if  there is a schedule for that.
Until it's merged, the easiest way to get rtti branch of fpc is to use fpclazup as described here:
http://forum.lazarus.freepascal.org/index.php/topic,30649.msg195749.html#msg195749
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018