3 ms·
C++? Unless you're talking about the very first compiler ever or some toy project, you're wrong, and I'd actually guess the same is true for obj-c.
by iforgotpassword 9y ago
C++? Unless you're talking about the very first compiler ever or some toy project, you're wrong, and I'd actually guess the same is true for obj-c.
- pjmlp 9y agoOf course I am speaking about CFront. C++ first compiler that actually generated native code without going through C was written by Walter Bright sold by Zortech, which then sparked the race from all other compiler vendors. Objective-C started as a macro processor for C, hence the [ ] syntax and @ prefixes, to make it easier to find them. Nowadays the macro processor is gone, but at assembly level Objective-C code still gets translated into a bunch of objc_msgSend() and similar calls.
- Longhanks 9y agoAnd objc_msgsend is implemented in Assembler. ObjC does NOT get compiled to C first.
- pjmlp 9y agoThat optimization came later in the game. Again, the point is that Objective-C started as macro processor generating C code, which gregopet states it is silly for Vala devs to choose the same path as Brad Cox and Tom Love decided for their language.