4 ms·
C is a portable assembler. Sometimes that's exactly what you want. C++ is C, except that it doesn't completely suck for higher-level projects.
by amalcon 17y ago
C is a portable assembler. Sometimes that's exactly what you want.
C++ is C, except that it doesn't completely suck for higher-level projects.
- seiji 17y agoLLVM IR [1] is portable assembler. C is "portable" in the sense that: a.) you get direct access to your linear address space b.) gcc targets so many instruction sets that you don't have to worry about your backend unless you have a custom platform. C++ is the thing that screams "__gxx_personality_v0" at me because I always start off using gcc instead of g++. [1]: http://llvm.org/docs/LangRef.html http://llvm.org/docs/LangRef.html
- jacquesm 17y agoCalling C portable assembler is not to be taken literally, but in context of its usage, which was for the most part systems level stuff that previously would have been written in assembler, requiring expensive ports between platforms. C changed that dramatically and helped to cut down on porting effort tremendously.
- varjag 17y agoI would say C++ is somewhat less portable assembler than C, due to different linker semantics, which is not unified across platforms.