Page 2 of 2

Re:C/C++ vs Assembler?

Posted: Sat Dec 28, 2002 4:49 pm
by Curufir
It comes down to what makes you happy I guess. HLLs are always going to be faster to code in than ASM, ASM is always going to give you more power than HLLs.

Personally I'm doing this for my own kicks, which is why just recently I've started trying to code using a hex editor (Nice one from a link on KJ's site). Why? Because I'm more interested in how the software interacts with the hardware than the software itself and even assembly hides a few of the details away. Now this is a seriously dumbass way of writing an OS, even if I had the 50 years or so it'd would take to produce something useful, but I'm enjoying myself so I don't really care and I know at some point I'll switch to something else.

Basically unless you're planning on toppling Gates make sure you're having fun. If ASM floats your boat then use that. If C is your thing then use that. If you try to do it in COBOL then you're insane :), but it's nobody's concern but your own.

Operating systems, IMO, are more about design and algorithmic solution than anything else. Certain languages make it simpler to do certain things, but if you can't solve the design problems then it will be impossible for you in any language.

**

Don't delude yourself, unless your asm skills are very good indeed then you probably won't outperform a compiler over large programs (Too much to track on modern processors). Don't choose asm because of some misconception that it will automatically be faster than C.

Re:C/C++ vs Assembler?

Posted: Sat Dec 28, 2002 7:34 pm
by jrfritz
I can see another language war coming about....