flat assembler
Message board for the users of flat assembler.
Index
> Main > C++ faster then Assembly? |
Author |
|
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.
|
|||
14 Mar 2004, 01:46 |
|
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++ But I am absolutely sure that writing on FASM you will get much more fun and education than writnig in C++. 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. |
|||
14 Mar 2004, 02:12 |
|
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. |
|||
14 Mar 2004, 09:22 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.