Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Little experiment compiling to function pointer calls...
Re: Little experiment compiling to function pointer calls... [message #34367 is a reply to message #34365] Fri, 18 November 2011 18:10 Go to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
I have played with the concept a bit more and got it to be able to compile:

{
	sum = 0;
	for(x = 0; x < 1; x = x + step)
		for(y = 0; y < 1; y = y + step)
			sum = sum + 1 / (1 - x * y + x - y);
}


Runs 6 times slower than native C++, 10 times faster than interpreted.

Code can be seen in sandbox... (tooks about 300 lines of U++ for this 'JIT' compiler).

Well, nice idea that can perhaps be of some use in the future. I am ending the experiment now Smile
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: upp GTK compatibility for Ubuntu broken?
Next Topic: Trouble with SizePos...
Goto Forum:
  


Current Time: Sun Jul 06 05:49:38 CEST 2025

Total time taken to generate the page: 0.03725 seconds