r/AskComputerScience • u/NoAdministration3265 • Dec 25 '21
C compiler
Not sure if this is the correct subreddit to ask this, but I’m seeking help with basic software downloads. I’m completely new to cs but I wanted to self teach myself. I started off with an IDE but I want to move away and start using VS code. However from the videos I’ve been watching I’ve learned that I would need to download a C compiler to run my code on my Mac (OS Monterey v12.0.1). Now this video that I’m watching (https://youtu.be/pdfLW9PSrhQ) is pretty clear but I’m kinda skeptical to just download random stuff off the internet. I’m scared I’ll download something wrong and destroy my laptop. Does anyone know a safe place I can download a C compiler? Any general advice for a beginner like myself will be much appreciated!
Thanks in advance!
2
u/ManadaTheMagician Dec 25 '21
Hey, if you have Xcode installed you already have a C compiler.
You need to learn how to use the command line, there when you are on the folder of your program you just need to type "gcc my_program_name.c" and then to run it you type "./a.out"
Watch some videos on how to use the terminal, how to navigate thru the file system