Installing compiler (GCC) for host (MAC)
How to install GCC in MAC?
Let’s install a host compiler that is GCC on a MAC machine. To install GCC on a Mac machine, you first have to install Homebrew.
For that, open the terminal and now open the web browser.
And type brew.sh, it is shown in Figure 2.
Copy the command (shown in Figure 2), and paste it onto the terminal, and hit enter (Figure 3).
So, it may ask you to enter the password.
Now, this installs the Homebrew packages on the machine. Please be patient until the installation completes.
After that, to install GCC, type the command brew install gcc and please wait for the completion of the installation.
Then you can just type the command gcc to verify the gcc. And here, we can see that the gcc command is detected, and it runs. (Figure 6)
That’s how you install the host compiler GCC on the Mac machine.
FastBit Embedded Brain Academy Courses
Click here: https://fastbitlab.com/course1