What is a compiler?

When we develop an application, either using Qt or any other software development kit, we often have to compile our project into an executable, but what is actually going on when we're compiling our project?

A compiler is a piece of software that transforms computer code written in a high-level programming language or computer instructions into a machine code or lower-level form that can be read and executed by a computer. This low-level machine code is very different depending on the operating system and computer processor you're running, but you don't have to worry about it as the compiler will convert it for you.

That means all you need to worry about is writing your logic code in a human-readable programming language, ...

Get Hands-On GUI Programming with C++ and Qt5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.