English
Assembler Forum

Tempovergleich: Profan / Profan2Cpp / Assembler

 

Frank
Abbing
Hi,

Have a couple Tests made with creep.
an vain Loop, The 100 millions time called becomes, lasts over 120 sec (P4/1800) with Profan.
the whole in Assembler lasts 78 Millisekunden, means ca. 1600 time faster.
interestingly yet The Messung, if the code with Sebastians Profan2Cpp carryed out becomes. C++ needed 250 Millisekunden for Loop, is means only  500 time faster as Profan.
Assembler is here means over 3 time faster as C++, what some over native Compilat in a Hochsprache aussagt...

deference !
Please absolutely Save under creep.prf, because otherwise The generierte Dll-function not found becomes.
After Generierung the finished Exe is the name the program naturally alike and can discretionary umgenannt go.
CompileMarkSeparation
 
07/11/04  
 



Nene Frank, there must I you unfortunately a little bit correct.

the Prf2CPP uses OBJs of XProfan, a pure-CPP schleife, with correctly.-gesetzem Compilerschalter is in the Geschwindigkeitsvergleich only slight slower as pure-ASM. The problem is not more than, if the CPP-Compiler not correctly. recognize, the it itself circa a simple addition deals, and its ASM yet brilliant brat-Checks einbaut etc.

means one comparison of ASM and CPP, under Benutzung of Prf2CPP is from of my visibility slight unzulässig.

To denne, iF
 
07/11/04  
 




Frank
Abbing
Hi,

only is the Loop Yes complete empty...
How Profan2Cpp very operates knows I do not.
CompileMarkSeparation
The code watts generiert what about me think, whom has the Dev-C++ too nativ Translated.
Perhaps says Sebastian yet what moreover, if it here time vorbeikommt
 
07/12/04  
 



Hmmm something is correct not Frank, can You you time whom actually XPSE runterziehen and look whether it on me lying?

I have c:p00x, and xpia lying in c:p00xxpia

everything operates well apparently correctly, too xpia exits itself erfolgeich, and the prog becomes too launched, but comes then with of/ one Message the The DLL not found watts. myself can The dll neither find.

I have whom o.g. Source attempts to start.

the Result is:
CompileMarkSeparation
Erstellt mit XProfan Inline Assembler / XPIA, (C) Frank Abbing
Assemblierte Datei: C:p00xXPIAAssemblertest.enh
Declare xpia#,xpia$,xpia&
Dim xpia#,3076
Clear xpia#
Long xpia#,0=9460301,3,4,65535,184,0,64,0,0,0,0,0,0,0,0,176,247078670,-855002112,1275181089,1750344141,1881174889,1919381362,1663069537,1869508193,1700929652,1853190688,544106784,542330692,1701080941,168627502,36,0,-642185571
Long xpia#,132=-1965594663,-1965594663,-1965594663,-1966782683,-1965594664,-1966835625,-1965594660,1751345490,-1965594663,0,0,17744,262476,1088455093,0,0,554565856,201654539,512,1536,0,4096,4096,8192,268435456,4096,512,4,0,4
Long xpia#,252=0,20480,1024,0,2,1048576,4096,1048576,4096,0,16,8224,88,8192,20,0,0,0,0,0,0,16384,40,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,0,0,0,0,0,0,2019914798,116,167,4096,512,1024,0,0,0,-536870880,1633972782,24948,120,8192,512,1536
Long xpia#,488=0,0,0,1073741888,1952539694,97,60,12288,512,2048,0,0,0,-1073741760,1818587694,25455,62,16384,512,2560,0,0,0,1107296320,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
Long xpia#,768=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1192457387,1,836297,-1559738997,268447744,-1559476853,268447748,-1559214709,268447752
Long xpia#,1060=-1558952565,268447756,-1558690421,268447760,-1558428277,268447764,-1558166133,268447768,-1557903989,268447772,-1557641845,268447776,-1557379701,268447780,-1557117557,268447784,-1556855413,268447788,-1556593269
Long xpia#,1136=268447792,-1556331125,268447796,-1556068981,268447800,-326412861,-32792,47359,1569390592,1111537928,65732623,189383427,1576629705,1218,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
Long xpia#,1340=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1919251317,1680749107,27756,0,1088455093,0,8274,1,1,1,8264,8268,8272,4229,8297,1096744960,1835365235
Long xpia#,1624=1919249506,1953719668,1752065375,1819042862,1314211328,1330205771,1095652174,3229005,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
Long xpia#,1904=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
Long xpia#,2324=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4096,40,806891536,807940128,808988720,810037312,811085904,812134496,813183088,12416,0,0,0,0
Long xpia#,2616=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
Long xpia#,3036=0,0,0,0,0,0,0,0,0
xpia$=$SysPath+\_Assemblertest_enh.dll
FileMode 1
Assign #1,xpia$
OpenRW #1
BlockWrite #1,xpia#,0,3072
CloseRW #1
Dispose xpia#
~~~~~~~~~~
DECLARE X&,Y&,Z&
CLS
X&=37
Z&=External(_Assemblertest_enh.dll,FUNKTIONSNAME1,X&)
PRINT Addiere eine Millionen mal 37 = +STR$(Z&)
WAITINPUT
END

the Program comes but with the Message DLL not found: _schleifen_enh

To denne, iF
 
07/12/04  
 




Frank
Abbing
Hi iF,

You work well with of/ one older XPIA Version, because the Dll yet in the Systempfad generiert becomes. ex last Version have I but whom Temppfad chosen, because it otherwise To Problemen with not-Admin-Usern coming. Update still time.

and have you got the too mind ?


deference !
Please absolutely Save under creep.prf, because otherwise The generierte Dll-function not found becomes.
After Generierung the finished Exe is the name the program naturally alike and can discretionary umgenannt go.


have dus hinbekommen ?

P.s.: Runs too with the new XPSE Version of today wonderful.
 
07/12/04  
 




Sebastian
König
Hello iF,

iF (!ReGeXiT)
Nene Frank, there must I you unfortunately a little bit correct.


what about me now you ...

iF (!ReGeXiT)

the Prf2CPP uses OBJs of XProfan, a pure-CPP schleife, with correctly.-gesetzem Compilerschalter is in the Geschwindigkeitsvergleich only slight slower as pure-ASM. The problem is not more than, if the CPP-Compiler not correctly. recognize, the it itself circa a simple addition deals, and its ASM yet brilliant brat-Checks einbaut etc.


Profan2Cpp using no OBJs of XProfan! The (X)Profan-Codes go correctly. to C++ Translated and then, very How Frank written has, nativ compiled. The functions, The not directly in the windows-API present are, go from whom Profan2Cpp-Bibliotheken to erstellten EXE-File gelinkt.

iF (!ReGeXiT)

means one comparison of ASM and CPP, under Benutzung of Prf2CPP is from of my visibility slight unzulässig.


Jain . In one point have You right: If one The of Frank gepostete Loop directly in C++ implementieren would, fiele the Difference To Assembler sure explicit less from.

the has different Reasons: If you you whom of Frank geposteten C++-code-shred ansiehst, position You solid, that The for-structure something tricky is and theoretical plainer configures go could. Profan2Cpp must but the complicated Variante using in order to all whileloop-mutants compatible To his and so everything very How in Profan self functions.

Also uses Profan2Cpp for translate programs one Multithread-concept, so too therefore yet little more Time for Loop needed becomes.

i think but, that it Frank with seinem comparison around the reference to profane goes (Frank, Please korrigiere me, if I crazy ). and thereby find I it ok, The Geschwindigkeitssteigerungen, everybody can with Inline-ASM and Profan2Cpp achieve can, To vergleichen. one can still with the XPSE too both join, or?

MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
07/12/04  
 



Hmmm Sebastian, eigendlich very my speech.
One optimierterer Cpp-code is hardly noticeable slower as a ASM-routine, particularly with this example. the wished so did i only testify.

Sebastian king
Hello iF,

... one can still with the XPSE too both join, or?

MfG

Sebastian


Jepp, i'm strain on the cpp-compilerschalter.


Frank, the Error lying by me, I named The File not creep.prf. now functions everything Primö!

To denne, iF
 
07/12/04  
 




Frank
Abbing
Hi.

@Sebastian: You irrst you not, I meant it so.
One Hochsprachencompiler created hold code, the variable configures is, circa any Eventualitäten einzukalkulieren.
The Assemblerroutine degegen is very undividuel.

@iF: thought I it still .
who reading can is clear in the benefit
 
07/12/04  
 



Sebastian king
The (X)Profan-Codes go correctly. to C++ Translated and then, very How Frank written has, nativ compiled.

have never what other behauptet.

Frank Abbing
who reading can is clear in the benefit

I can it ebend not. means something better Zuarbeit büdde.
on the end remaining still but spare, I to that beginning already meant: One optimierter CPP-code is in the speed hardly To discern of ASM. With the whom OBJs I had still only aufgeführt, in order to symbolize the there hold explicit More as only one dec ecx implemented becomes, what whom Speedunterschied heavy ausmacht. I meant too the the comparison between prf2cpp-code and asm-code something unfair is, because hold the prf2cpp, very How You indeed self say, not whom optimiertesten code auswirft. is indeed logical, must Yes on The most different Profanen terms fit.

To denne, iF
 
07/12/04  
 




Frank
Abbing
Hi.


I meant too the the comparison between prf2cpp-code and asm-code something unfair is, because hold the prf2cpp, very How
You indeed self say, not whom optimiertesten code auswirft. is indeed logical, must Yes on The most different Profanen
terms fit.


...for must Profan The Assemblerfunktionen but too as Dll-functions started. possibly even yet with External, what on my own already 16 ms for its process needed .
means gleicht itself the from.
 
07/12/04  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.019 Views

Untitledvor 0 min.
Sven Bader10/22/21
Rschnett08/15/17
p.specht05/03/17
dieter07/02/16
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie