assembly vs c++

Discussion in 'Web Design & Coding' started by FishBoy, Mar 12, 2005.

  1. which one of those is more powerfull i know C++ is the most powerfull language but if assembly is the closes to machine language doesn't that mean that assembly should be stronger than C++??
     
  2. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    Assembly if you like coding in opcodes....

    C if you like programming in english :D

    I'm dubious to the advantages of c++ as windows is almost entirely C + ASM
     
  3. what i thought windows was C++, no im sure it is c++ does more than C, and assembly i think is powerfull but really complicated and kinda hard to learn, that's what i think
     
  4. Mainframeguy

    Mainframeguy Debiant by way of Ubuntu Folding Team

    Messages:
    3,763
    Location:
    London, UK
    the question itself reveals glaring lack of knowledge and/or experience - since when did a language in and of itself have "power"?

    As an example you could have a tractor and an F1 racing car with the same raw engine power.... one is great for fields and the other for grand prix circuits - and their "power" can be compared similarly as equivalent but suited for different tasks.

    The answer as to what is most powerful - is simple - BOTH not either in isolation, and preferably assisted by a good interpretive testing harness and poweruflk "make" procedural language too...

    I hope this helps. The road to understanding software for you, grasshopper, is a long one ;) :p
     
  5. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    Windows has always been coded in C, all C++ does is add an OO Framework to which its advantages are dubious at best. Where you need time critical code and youknow your target CPU inside and out you would use manually optimized ASM.

    ASM in itself is easy to learn but hard to master. Its also hard to trackwaht you're doing without writing copious quantities of notes.

    Mr MFG here though codes in machine code... Its almost like he tripped and NASM landed in his brain :D
     
  6. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    ASM is the language closest to the hardware and therefore the fastest since you can optimize it very well. But it's hell to write anything big in it.

    C/C++ is (roughly) the next abstraction level. It's much easier to code bigger things in, but also a bit slower.

    Then there's a tons of other languages higher up, Java, Python and what not. These are even easier to code in (no memory management and headaches like that), but yet again slower.

    It's all about abstraction levels grasshopper. ;)
     
  7. well yea but by power i meant like the one that can take most control of the machine as in like do the best work on the hardware