问HN:在嵌入式开发中使用带类的C语言可以吗?
你好。我正在为嵌入式系统编写代码。大多数 CPU 是 ARM 或来自 FPGA 供应商的 SoftCpu。到目前为止,我使用的是 C11。所有的 CPU 都得到了 gcc 的支持,真是太好了。我以前在 C++11 之前写过 C++。那真是美好的旧时光。现在我越来越常考虑在嵌入式系统上切换到 C++。没有异常处理,没有 RTTI,没有 STL 或 Boost。只是带有类的 C,以享受 C++ 的奢华。你怎么看?这样值得吗?
查看原文
Hello. I am writing code for embedded systems. Most cpu are ARM or SoftCpu from FPGA vendors. Up to now I use C11. All the CPU are supported by gcc, thank god. I used to write c++ before C++ 11. The good old time. I now think more and more often to switch to C++ on embedded. No exceptions no RTTI no STL or Boost. Just C with Classes for the luxury of C++. What do you think? Is it worth the hazel?