kvmsir.blogg.se

How to compile c++ in mac
How to compile c++ in mac












how to compile c++ in mac

The executable created for one platform can only be executed on that platform. Online C compilers compile C code and create an executable according to the platform. That is the reason for the size difference.Ĭ code can be written on any platform like Mac, Windows, etc. Whereas the size of the executable on Mac is 49 KB !!! Can you guess why there is a difference in size between C code and executable? The compiler takes care of loading stdio.h code and all the required code that is needed to run into an executable.

how to compile c++ in mac how to compile c++ in mac

Can you guess the size of the above C code and the executable it generates?Ĭ code only took 71 bytes to be stored. Mac C compilers convert a C code to an executable that can be run directly.














How to compile c++ in mac