Public Group

# Visual Studio Compiler?

This topic is 3619 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi all. I recently got a new mac laptop and I have been doing a little bit of programming in Xcode and it has made my kinda of curious. Does Visual Studio... say 2008.. use its own compiler (ie: visual studio compiler?) or does it do something similar to Xcode and use GCC external (which i'm assuming xcode does). Mainly just curious is all I never really looked at different ide's / compilers aside from visual studio because at the time I didn't really have any reason too. Thanks!

##### Share on other sites
Yeah Visual Studio comes with it's own compiler called cl.exe and you can run it form the command line like GCC by typing CL.

##### Share on other sites
By typing CL? Oh joy!
Microsoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 Microsoft Corp.C:\>cl'cl' is not recognized as an internal or external command,operable program or batch file.C:\>
I have a feeling there's a little more to it.

Anyway, yeah, they have their own, and it's not bad. g++ and VC++ are two of the best I know of, although I've heard Intel's can do certain optimizations the others can't. I actually find the thought of MS outsourcing something like a compiler for their IDE funny.

Oh, and kudos for noting that your compiler is gcc, not Xcode. Way too often, they melt together in peoples minds and I hear "What's a good compiler?" "Code Blocks". -_-;

##### Share on other sites
You have to run the "visual studio command prompt" one of the icons under the start menu -> visual studio. It sets up all the environment variables the compile needs to find everything. THEN cl will work from the command line. Along with the commands to build a .vc_proj from the commandline (vcbuild?)

##### Share on other sites
Quote:
 Original post by KulSeranYou have to run the "visual studio command prompt" one of the icons under the start menu -> visual studio. It sets up all the environment variables the compile needs to find everything. THEN cl will work from the command line. Along with the commands to build a .vc_proj from the commandline (vcbuild?)

Yes if you don't have your path for Visual Studio set up correctly in Windows or have no clue what that is then that's the easiest way to get to it:)

##### Share on other sites
Thanks everyone.. haha went on vacation. Still figured I should say Thank you.

1. 1
2. 2
3. 3
Rutin
15
4. 4
5. 5

• 9
• 9
• 11
• 11
• 23
• ### Forum Statistics

• Total Topics
633678
• Total Posts
3013292
×