Recent

Author Topic: KOL x64  (Read 8802 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 18324
  • Here stood a man who saw the Elbe and jumped it.
Re: KOL x64
« Reply #30 on: December 20, 2018, 09:37:26 pm »
That's not a GUI application, but that size is correct for a terminal/console application.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

fasdfasdfasdfasdfasdf

  • New Member
  • *
  • Posts: 45
Re: KOL x64
« Reply #31 on: December 21, 2018, 12:35:16 pm »
I think i will try to reimplement it in C++.

Thaddy

  • Hero Member
  • *****
  • Posts: 18324
  • Here stood a man who saw the Elbe and jumped it.
Re: KOL x64
« Reply #32 on: December 21, 2018, 12:43:48 pm »
I think i will try to reimplement it in C++.
Then the size would likely increase!!!! >Be warned! (We've actually done that around 2001-2002 for C++builder)
And the code will likely become less safe, too.
Further size gains are basically only possible with plain C and you will loose OOP.

For the concept of KOL, Object Pascal is an ideal language because the compiler has so many things built-in compared to C++.
« Last Edit: December 21, 2018, 12:50:17 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 #33 on: December 21, 2018, 12:47:54 pm »
How much? And which C++ are we talking?

Thaddy

  • Hero Member
  • *****
  • Posts: 18324
  • Here stood a man who saw the Elbe and jumped it.
Re: KOL x64
« Reply #34 on: December 21, 2018, 12:52:31 pm »
C++ builder. Around 30-50% depending on 32/64. Visual C++ was never tested, mainly because C++ builder has some features to co-operate with Delphi code.
Note it is very hard to go smaller, because e.g. the 32 bit version is over 50% already written in BASM. And KOL uses any and all available tricks to achieve its small sizes while still being OOP.
I would advice against it, unless you want to see that here the Pascal language is superior to C++: safer, smaller, more readable.
« Last Edit: December 21, 2018, 12:58:30 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 #35 on: December 21, 2018, 01:06:16 pm »
One more thing can we use callbacks in KOL for events? Or do we have to use MakeMethod??

Thaddy

  • Hero Member
  • *****
  • Posts: 18324
  • Here stood a man who saw the Elbe and jumped it.
Re: KOL x64
« Reply #36 on: December 21, 2018, 01:15:07 pm »
Makemethod is only necessary if an event implementor is declared outside of an object.
The event mechanism from KOL is otherwise based on the same mechanism as the VCL: procedure of object. (TOnEvent is basically the same as TNotifyEvent).
And yes, you can implement callbacks too: hey it is Pascal  8-)
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

 

TinyPortal © 2005-2018