flat assembler
Message board for the users of flat assembler.

Index > Main > C++ faster then Assembly?

Author
Thread Post new topic Reply to topic
JulianS



Joined: 13 Mar 2004
Posts: 2
Location: Denmark
JulianS 13 Mar 2004, 23:26
Hi, I am about to make this DLL file, and I know the basic Assembly and the Basic C++, however I am not a pro with any of them. I need to chose a language and then I will extend my skills in that language and within a week I should be able to do what the DLL file requires me to do. I don't really know if Fasm can do DLL files, but when I learned to use Masm I learned that it could, even though Masm is usually for windows.

Some C++ Programmer told me to that writting the DLL file in C++(Visual C++) would be more easy to port to other platforms and chances are that they will be faster, because the compiler was so optimized etc.... and from my previous knowglede of C++, I knew that Visual C++ supported in line assembly and that almost everything in it could be customized....

So can Fasm make DLL files, and is C++ faster then Fasm to create DLL files?

I know this is a Fasm forum, and the members here probably supports it, but please be objective in this case.

Also remember to state your arguements. Exclamation

Thank you in advance.

- Julian

_________________
When you think there is nothing more to learn, you stop learning, and by that stop growing.
Post 13 Mar 2004, 23:26
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 14 Mar 2004, 01:46
No comments from me because I have seen too many of this kind of debate or argument that I am kind of sick of it.
Post 14 Mar 2004, 01:46
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 14 Mar 2004, 02:12
Hi.

JulianS wrote:
Hi, I am about to make this DLL file, and I know the basic Assembly and the Basic C++, however I am not a pro with any of them. I need to chose a language and then I will extend my skills in that language and within a week I should be able to do what the DLL file requires me to do. I don't really know if Fasm can do DLL files, but when I learned to use Masm I learned that it could, even though Masm is usually for windows.


Yes, FASM can create DLL files, also PE and MZ exe files and COM programs directly without external linker. Also COFF and MS COFF and ELF object files if you prefere to link you DLL with external linker.

There is an example for DLL creation in FASMW package fro Windows.

Quote:
Some C++ Programmer told me to that writting the DLL file in C++(Visual C++) would be more easy to port to other platforms...


AFAIK, DLL's works only on one platform - Win32. What platforms they were tolked about? (Ah, and usually C programmers tend to argue everything with portability. btw: you can ask the guy who talk you about portability, how many programs he is ported from one plathform to another).

Quote:
... and chances are that they will be faster, because the compiler was so optimized etc.... and from my previous knowglede of C++, I knew that Visual C++ supported in line assembly and that almost everything in it could be customized....


About speed - probably you will get better speeds (and definately smaller size) using assembler (FASM particulary), despite of C++ speed optimizations. It is because of different level of perceiving the problems.
Of course if you use totally wrong (inefficient) algorithms you can get terrible performance even with assembly, but it is absolutely valid for C++ too.

Quote:
So can Fasm make DLL files, and is C++ faster then Fasm to create DLL files?


If you are talking about developement speed, it depends not from language, but from how good you know this language. For example good C++ programmer will write it faster in C++, but for example I will write it faster on FASM, because I have to learn C++, before writing DLL in C++ Smile

But I am absolutely sure that writing on FASM you will get much more fun and education than writnig in C++. Smile

If you are interested of FASM writing, you have to download FASMW, which is FASM with small and very usefull IDE and a lot of example, including DLL example.
Also you may try Fresh (fresh.flatsasembler.net). It is FASM compiler with advanced IDE. Yea, it is in very early stage of developement and have bugs, but it have also some tools that work pretty well and can speed-up developement (for example project manager, code completition, direct call of external debuger and "goto address").

Regards.
Post 14 Mar 2004, 02:12
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
JulianS



Joined: 13 Mar 2004
Posts: 2
Location: Denmark
JulianS 14 Mar 2004, 09:22
Thank you for your reply JohnFound, C++ is portable yes, but since I am making a DLL file, I can't use it's portability, and I certainly agree with you on the fact that you can write assembly code fast, because you could have all the macros ready, and have a fast, but readable codestyle.
So I'll give Fasm a try.

- Julian

_________________
When you think there is nothing more to learn, you stop learning, and by that stop growing.
Post 14 Mar 2004, 09:22
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.