Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 05:41
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AbrahamR, AndrewAMD), 1,278 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How performant is Lite-C ? #158929
10/06/07 00:34
10/06/07 00:34
Joined: Mar 2003
Posts: 93
C
Cipher Offline OP
Junior Member
Cipher  Offline OP
Junior Member
C

Joined: Mar 2003
Posts: 93

I am curious how Lite-C compares internally with Lua , AngelScript and other scripting languages and Python ( i.e. memory management, stack-based or heap etc. ) ?

I am considering using Lite-C for some heavy weight coding, I would like to know how Lite-C compares with ordinary C++ , Lua and Python in terms of CPU and memory consumption ?

Re: How performant is Lite-C ? [Re: Cipher] #158930
10/06/07 03:13
10/06/07 03:13
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
lite-c is a c compiler so it is in a different league than interpreted languages.

to get an idea about the performance difference between compiled and interpreted languages: http://shootout.alioth.debian.org/

i don't know how lite-c compares to other c-compilers though. i guess it is a bit slower since conitec doesn't have the same optimization manpower as microsoft for example.

experiment with the free lite-c a bit!

Re: How performant is Lite-C ? [Re: ventilator] #158931
10/06/07 05:30
10/06/07 05:30
Joined: Mar 2003
Posts: 93
C
Cipher Offline OP
Junior Member
Cipher  Offline OP
Junior Member
C

Joined: Mar 2003
Posts: 93

Well if that is the case then its certainly nice.

But a " compiled " language can be mean many things really, it is more an adjective.

For example both Java and C# are compiled to bytecode ( i.e. C# is compiled to MSIL / CIL ) and then just-in-time compiled ( with C# on-demand ; with Java using HotSpot , basically profile and optimize the bottlenecks ) , at least in the usual, normal case ( it is possible to interpret both or entirely pre-compile to machine code ).

I would assume that Lite-C is compiled to bytecode which is then interpreted in a virtual machine. This is most commonly found in similar scripting languages ( i.e. QuakeC ).

It would be possible to further compile the bytecode ( or just go direct ) to machine code. But that would be fairly complex.

JCL where are you



Re: How performant is Lite-C ? [Re: Cipher] #158932
10/06/07 05:35
10/06/07 05:35
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
lite-c compiles to machine code.

Re: How performant is Lite-C ? [Re: ventilator] #158933
10/06/07 20:39
10/06/07 20:39
Joined: Mar 2003
Posts: 93
C
Cipher Offline OP
Junior Member
Cipher  Offline OP
Junior Member
C

Joined: Mar 2003
Posts: 93


Ah my apologies, right there on the front page :

" compiles on the fly to machine code executable "

But can I learn more details on how this compilation is performed ( i.e. optimizations ) ?

Re: How performant is Lite-C ? [Re: Cipher] #158934
10/08/07 06:10
10/08/07 06:10
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The code is straight compiled, without optimizations. Therefore lite-C machine code is about 40% slower than machine code compiled with VC++ 5.0 with all optimizations activated.

You can test the performance with the mandelbrot program. It compiles under VC++ as well.

As to the comparision with LUA, Angelscript and so on, that are just interpreted scripting languages and not comparable to lite-C. lite-c is about 10 to 20 times faster and far more flexible and pwerful.


Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1