devxlogo

Do Unix C++ compilers transform C++ code to C?

Do Unix C++ compilers transform C++ code to C?

Question:
If I write C++ code in UNIX, does my code convert to C and compile?

Answer:
Not necessarily. The first C++ compiler, cfront, was actually a C++ to C code translator. The resultant C code would then be compiled and linked. However, the latest version of cfront was released nearly a decade ago, so it’a very far behind the Standards. Today, most modern C++ compilers on UNIX produce native assembly code directly.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist