Recent

Author Topic: KOL x64  (Read 8794 times)

fasdfasdfasdfasdfasdf

  • New Member
  • *
  • Posts: 45
Re: KOL x64
« Reply #15 on: December 19, 2018, 05:40:37 pm »
One more thing ... how compatible is Delphi RTL with latest trunk of FPC?

Thaddy

  • Hero Member
  • *****
  • Posts: 18305
  • Here stood a man who saw the Elbe and jumped it.
Re: KOL x64
« Reply #16 on: December 19, 2018, 05:52:31 pm »
WHICH Delphi RTL? The only versions that I can compile with FPC without change (except for some minor bug fixes in the delphi code) are D3,4,5,6,7,2005,2006,2007. Others are possible too, but apart from XE2 (which won't work) I have no further licenses with full sourcecode, so can't test that. Like FPC, runtime libraries are highly version dependent.
But for the versions I mentioned it is possible to compile the full Delphi rtl with a FPC compiler, with the exception of system.pas.
The changes are:
- handles.
- parsing errors because of missing ';'

That's all.
« Last Edit: December 19, 2018, 05:58:32 pm by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

fasdfasdfasdfasdfasdf

  • New Member
  • *
  • Posts: 45
Re: KOL x64
« Reply #17 on: December 19, 2018, 05:58:28 pm »
Yeah XE2. I guess with some modification it should work.k

Thaddy

  • Hero Member
  • *****
  • Posts: 18305
  • Here stood a man who saw the Elbe and jumped it.
Re: KOL x64
« Reply #18 on: December 19, 2018, 05:58:55 pm »
Nope. Anonymous methods.
« Last Edit: December 19, 2018, 08:48:02 pm by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

fasdfasdfasdfasdfasdf

  • New Member
  • *
  • Posts: 45
Re: KOL x64
« Reply #19 on: December 19, 2018, 06:01:18 pm »
System.pas uses annonymous methods???

Thaddy

  • Hero Member
  • *****
  • Posts: 18305
  • Here stood a man who saw the Elbe and jumped it.
Re: KOL x64
« Reply #20 on: December 19, 2018, 08:50:02 pm »
No, the system.pas will not compile anyway and in any version as I explained, but the RTL XE2 uses anonymous methods.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

fasdfasdfasdfasdfasdf

  • New Member
  • *
  • Posts: 45
Re: KOL x64
« Reply #21 on: December 20, 2018, 01:19:06 pm »

fcu

  • Full Member
  • ***
  • Posts: 119
Re: KOL x64
« Reply #22 on: December 20, 2018, 02:11:37 pm »
It seems Delphi can also generate *very* small apps.
http://www.delphibasics.info/home/delphibasicsarticles/smallapplicationsindelphibyn0v4

fpc also can gen a tiny exe , look at my example : 3.5kb for a messagebox app !
its not super tiny , but it could be shrinked a little more

440bx

  • Hero Member
  • *****
  • Posts: 5805
Re: KOL x64
« Reply #23 on: December 20, 2018, 02:50:37 pm »
fpc also can gen a tiny exe , look at my example : 3.5kb for a messagebox app !
Can you provide a 64bit version ?  The version you provided compiles fine for 32bit but does not compile when targeting 64bits.

Thank you in advance.

FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

fasdfasdfasdfasdfasdf

  • New Member
  • *
  • Posts: 45
Re: KOL x64
« Reply #24 on: December 20, 2018, 03:18:10 pm »
AFAIK this is even smaller.

440bx

  • Hero Member
  • *****
  • Posts: 5805
Re: KOL x64
« Reply #25 on: December 20, 2018, 03:24:43 pm »
AFAIK this is even smaller.
Yes but, like yours, it is only 32bit.

Having a 64bit version would be quite nice.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

Thaddy

  • Hero Member
  • *****
  • Posts: 18305
  • Here stood a man who saw the Elbe and jumped it.
Re: KOL x64
« Reply #26 on: December 20, 2018, 03:32:57 pm »
32 bit is smaller indeed than a 64 bit. Sizes are as I indicated. Last version I made/patched for 64 bit was KOL 3.23 which is as I understand still current, but somebody took over maintenance since I lost interest. (Although I still use KOL and can confirm it still works, even with trunk)
Under windows about 14k for 32 bit under Delphi+ system units, about 35K for 32 bit FPC and about 60K for 64 bit FPC, all due to 32 vs 64 bit. That is still of course significantly smaller than can be achieved with any other object oriented framework that I know of. Of course, pure bare metal is even smaller, but without the comfort of object orientation. And - although Vladimir Kladov tried once to add Linux support based on Kylix - Windows CE, 32,64 only.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

fasdfasdfasdfasdfasdf

  • New Member
  • *
  • Posts: 45
Re: KOL x64
« Reply #27 on: December 20, 2018, 03:33:09 pm »
Indeed. Probably Thaddy can.

Please please please @Thaddy we want x64 KOL!

And min-rtl for x64! I personally just want to learn how its done.
« Last Edit: December 20, 2018, 03:38:36 pm by r2r3 »

Thaddy

  • Hero Member
  • *****
  • Posts: 18305
  • Here stood a man who saw the Elbe and jumped it.
Re: KOL x64
« Reply #28 on: December 20, 2018, 03:38:25 pm »
No need. I have already done it (the first port wasn't even by me or Vladimir, but I integrated it in the main source base) many years ago. 3.23 should be good to go as per my link and is 64 bit ready.
I am not sure about MCK, though, but I tested straight recompilation from 32 bit MCK projects to 64 bit and that works. MCK are only proxy components or mirrors and do not affect the real code. It works different from LCL or VCL.

I am still willing and able to advice on KOL, though. Apart from Vladimir Kladov, who designed it and wrote the core,  I am probably the best source.

Note that if you want smaller, you can, but the difference in size is knit-picking.
« Last Edit: December 20, 2018, 03:49:16 pm by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

fcu

  • Full Member
  • ***
  • Posts: 119
Re: KOL x64
« Reply #29 on: December 20, 2018, 06:40:16 pm »
AFAIK this is even smaller.

i got the same size 3.5

 

TinyPortal © 2005-2018