Examining the macOS gcc binary

If you’ve ever written C (or c++) on a mac, you’ll know that the so-called gcc is just clang in disguise. Most people (fairly) assume that this is just an alias, but this is not true! It’s a binary! Now, what is this binary? I naively assumed that it would just be shelling out to clang but it turns out the answer is more interesting than that.

↫ juliethefoxcoon

It’s all smoke and mirrors.

Leave a Reply