/Teaching/Operating Systems/Tutorials/Building SWEB under Mac OS
Building SWEB under Mac OS
In order to build SWEB under Mac OS you need a cross compiler. We recommend you follow the instructions at https://github.com/GhostLyrics/homebrew-sweb.
This is not the recommended method for the operating systems course!
If you really feel you have to build SWEB under Mac OS
, do so, but in case you run into troubles and need our help, expect answers like “try compiling under Linux”
Create a folder for the binary an object files (
/tmp/sweb for example).
On all operating systems, we recommend installing a RAM drive
and placing the binary folder on the RAM drive to avoid frequent writes to your hard disk or solid state disk.
Run CMake as follows:
Now you can run