←back to thread

271 points mithcs | 1 comments | | HN request time: 0.195s | source
Show context
krapht ◴[] No.45953071[source]
C++: "look at what others must do to mimic a fraction of my power"

This is cute, but also I'm baffled as to why you would want to use macros to emulate c++. Nothing is stopping you from writing c-like c++ if that's what you like style wise.

replies(7): >>45953166 #>>45953176 #>>45953287 #>>45953573 #>>45954009 #>>45954016 #>>45961205 #
sesm ◴[] No.45954009[source]
Embedded CPU vendors not shipping C++ compilers is what usually stops people.
replies(2): >>45955450 #>>45956852 #
1. bangaladore ◴[] No.45956852[source]
In my experience most chips released in the past 10+ years ship with C++ compilers.

Quite frankly I'm not sure why you wouldn't given that most are using GCC on common architectures. The chip vendor doesn't have to do any work unless they are working on an obscure architecture.