EACam
Warrior
154 Posts |
Posted - May 05 2004 : 7:14:43 PM
|
I downloaded the VB InLine ASM add-in for VB 6.0. I desperately need to take advantage of ASM's speed, so I tried to compile app with the add-in linked to the compiler. If said I need some Assembler exe (an option that I apparently hadn't set). Um...I don't know what this assembler is and where I can get it...becuase ml.exe doesn't exist on my computer (that seemed to be the name of the executable it wanted).
Thanks. |
|
Almar
Moderator
Netherlands
192 Posts |
Posted - May 06 2004 : 12:19:15 PM
|
quote: Originally posted by EACam
I downloaded the VB InLine ASM add-in for VB 6.0. I desperately need to take advantage of ASM's speed, so I tried to compile app with the add-in linked to the compiler. If said I need some Assembler exe (an option that I apparently hadn't set). Um...I don't know what this assembler is and where I can get it...becuase ml.exe doesn't exist on my computer (that seemed to be the name of the executable it wanted).
Thanks.
http://www.persistentrealities.com/vbfibre/index.php?category=0&item=5&t=asm
hmm, but it seems I haven't mentioned a download link to MASM... do a quick google for it :)
here:
http://www.masm32.com/
|
Edited by - Almar on May 06 2004 12:24:21 PM |
|
|
Eric Coleman
Gladiator
USA
811 Posts |
Posted - May 06 2004 : 1:30:38 PM
|
You should probably download the files from the original source. For the assmbly add-in, it is a modification to John Chamberlain's compile controller. His website doesn't exist anymore and he's stopped answering emails unfortunately. Someone did upload his original plug-in to planetsourcecode, but that website tookout all of the examples, so what you get from that website isn't the complete package and is missing documentation. You can find likes to both the modified compiler controller addin and samples for the modifcation by looking in the Tools section here at vbgamer. For Microsoft's assembly compiler, you can get it by downloading their processor pack for visual studio 6. The processor pack allows visual C++ to compiler for processors other than the Pentium Pro, such as for AMD 3DNow! and Penitum MMX, SSE, etc. extensions. It also contains sample source code from AMD on how to do optimized vector, matrix and quaternion mathematics. |
|
|
Almar
Moderator
Netherlands
192 Posts |
Posted - May 06 2004 : 1:59:30 PM
|
quote: Originally posted by Eric Coleman
You should probably download the files from the original source. For the assmbly add-in, it is a modification to John Chamberlain's compile controller. His website doesn't exist anymore and he's stopped answering emails unfortunately. Someone did upload his original plug-in to planetsourcecode, but that website tookout all of the examples, so what you get from that website isn't the complete package and is missing documentation. You can find likes to both the modified compiler controller addin and samples for the modifcation by looking in the Tools section here at vbgamer. For Microsoft's assembly compiler, you can get it by downloading their processor pack for visual studio 6. The processor pack allows visual C++ to compiler for processors other than the Pentium Pro, such as for AMD 3DNow! and Penitum MMX, SSE, etc. extensions. It also contains sample source code from AMD on how to do optimized vector, matrix and quaternion mathematics.
Al those files are mirrored on the files section of Vb fibre |
|
|
Spodi
Warrior
USA
142 Posts |
Posted - May 06 2004 : 6:01:29 PM
|
Too bad ASM is hella cornfoosin! |
vbGORE |
|
|
VBBR
Moderator
Brazil
617 Posts |
Posted - May 06 2004 : 6:11:01 PM
|
I'm forced to agree! If it's already kinda hard to learn C++ imagine the brain one must have to properly understand ASM... I think he must be some kind of a genius or have nothing more stored on his memory...
...I mean, his "brainal" merory, not his RAM...
...wait I think it also takes a lot of RAM to document ASM too, right?... |
Whatever. Who knows... |
|
|
Sr. Guapo
Swordmaster
USA
272 Posts |
Posted - May 06 2004 : 8:10:59 PM
|
How much faster could a method be using ASM anyway
|
Edited by - Sr. Guapo on May 06 2004 8:11:46 PM |
|
|
cjb0087
Knave
Australia
76 Posts |
Posted - May 07 2004 : 02:27:12 AM
|
c++ and asm arn't really that difficult, the advanced stuff in c++ link templates are sorta hard.
its just difficult to find out how to do stuff in it |
www.bugsplat.tk |
|
|
VBBR
Moderator
Brazil
617 Posts |
Posted - May 07 2004 : 10:14:08 AM
|
So there's something that is hard... But I'm trying to learn C++ anyway... |
Whatever. Who knows... |
|
|
Almar
Moderator
Netherlands
192 Posts |
Posted - May 07 2004 : 12:32:47 PM
|
I learned ASM because I think it's easier than C++. I mean.. you know all your Soin /Cos/ + - stuff? Well, ASM it's just words.
mov eax, 10; add eax, 20; dec eax; mov ecx, 15; add ecx, eax;
would be in VB dim eax as integer, ecx as integer eax= 10 eax = eax + 20 eax = eax -1 ecx = 15 ecx = eax + ecx
well, easy isn't it? :) |
|
|
VBBR
Moderator
Brazil
617 Posts |
Posted - May 07 2004 : 2:05:46 PM
|
Hum, I guess that is... but this is far simple... What if I want to communicate with DX for example?
Just another thing: Why are ASM variables called like eax, ebx, ecx etc. ? |
Whatever. Who knows... |
|
|
Almar
Moderator
Netherlands
192 Posts |
Posted - May 07 2004 : 3:35:10 PM
|
quote: Originally posted by VBBR
Hum, I guess that is... but this is far simple... What if I want to communicate with DX for example?
Just another thing: Why are ASM variables called like eax, ebx, ecx etc. ?
Those are registers.. read up on those :) ASM is quite easy.. just check out the stuff @ vbfibre.
You could use ASM to do complex matrix multiplication operations for example :)
|
|
|
Sr. Guapo
Swordmaster
USA
272 Posts |
Posted - May 07 2004 : 10:51:54 PM
|
From what I understand, assembly is about as close to machine code as you can get, right? ANyway, I looked at one of the tutorials... It confused me for a long time, but once you start toi understand, it becomes easier. All I can say is, it's a lot more complicated than higher level languages (like VB) |
|
|
cjb0087
Knave
Australia
76 Posts |
Posted - May 08 2004 : 01:26:11 AM
|
mov eax, 10; add eax, 20; dec eax; mov ecx, 15; add ecx, eax;
would be in C++ int eax =10 ,ecx =15; eax += 20; eax--; ecx+=eax;
less lines of code :D
yeah ASM is as close to machine code as possable, but then who would want to write that as 010101000111010010101010101001010010 101111010011010101010101101010101001 101010010011010100001010011001010101 010010101010101010101011111000011010 ?
(the lines breaks are so it dosnt extend the table) |
www.bugsplat.tk |
|
|
Almar
Moderator
Netherlands
192 Posts |
Posted - May 08 2004 : 03:11:52 AM
|
quote: Originally posted by cjb0087
mov eax, 10; add eax, 20; dec eax; mov ecx, 15; add ecx, eax;
would be in C++ int eax =10 ,ecx =15; eax += 20; eax--; ecx+=eax;
less lines of code :D
yeah ASM is as close to machine code as possable, but then who would want to write that as 010101000111010010101010101001010010 101111010011010101010101101010101001 101010010011010100001010011001010101 010010101010101010101011111000011010 ?
(the lines breaks are so it dosnt extend the table)
Lines of code doesn't say a thing. If so, Javascript will own your C code, here: <script language="javascript">var eax = 10; var ecx = 20; eax+=20; eax--;ecx+=eax; alert("Result: " + eax);</script> |
|
|
cjb0087
Knave
Australia
76 Posts |
Posted - May 08 2004 : 06:33:25 AM
|
i know it dosnt mean a thing, anyway isnt that 6 lines opposed to 4? |
www.bugsplat.tk |
|
|