XNA and Visual Studio Express will require you to register your email and make an account with Microsoft but it is still free. Most compilers and IDEs that you develop on Windows will only run on Windows machines. Mac OS doesn't support .exe

If you wanna do a good example Unity project, check the link below
link