• Welcome to Valhalla Legends Archive.
 

C++ Compilers

Started by FrOzeN, November 14, 2005, 11:47 PM

Previous topic - Next topic

FrOzeN

I want to get some perspectives on what people define as the best compiler, for certain purposes.

For example what compilers do companies use to compile there games, or do they use makefiles etc..

Please elaborate on this and discuss what compilers are best for what, etc.. :)

Thanx
~ FrOzeN

Mangix

i think most companies use the Microsoft C++ compiler mainly because it was invented by the company that made Windows which is what the games use(obviously).

and im not sure i understand your "what a compiler is best for" question. it's best for compiling c++ code on the platform that it was made to compile on

Kp

If you want the absolute best performance on an x86 chip, the Intel compiler is probably the way to go.  Just be prepared to spend a long time sitting, because it optimizes very thoroughly (and therefore the optimization passes can take a long time).  If you want really neat extensions and the ability to compile almost anywhere, go with g++.  If you want to use a Microsoft product, use Visual C++ (there's nothing nice I can say about it, sorry).  VC++'s internal implementation of make is terribly slow compared to GNU make on a Linux system.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Yegg

On a Windows environment, Microsoft Visual C++ 2005 Express Beta is a great choice for IDE and compiler. GNU also seems to be quite promising as well.

Warrior

GCC on cygwin or MinGW.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

FrOzeN

ATM the next major C++ application I plan on making with be a bot (FrOzeNBoT, yes that thing I've ranted on now and then before).

As it will be using alot of GUI api's for skinning I need something that can optimize this well.
I currently have Microsoft Visual C++ 6.0 Enterprise Edition.
~ FrOzeN

Warrior

I'm pretty sure the already offered optimizations are all you'll need. Just code pretty like and I don't think you will suffer a performance decrease.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Mangix

Quote from: FrOzeN on November 15, 2005, 09:44 PM
ATM the next major C++ application I plan on making with be a bot (FrOzeNBoT, yes that thing I've ranted on now and then before).

As it will be using alot of GUI api's for skinning I need something that can optimize this well.
I currently have Microsoft Visual C++ 6.0 Enterprise Edition.
why are you using win32 APIs when you have MFC at your disposal?

Dyndrilliac

Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

FrOzeN

#9
Because I want the bot to work on all platforms and MFC doesn't like that.

Also I dislike MFC, it's just another thing like the .NET Framework. It's there to make things simpler, but in doing so it makes computers need that Framework (or required files for it) and can be achieved in alternative measures which result in better outcomes.
~ FrOzeN

Mangix

#10
then you're gonna want GTK+, wxWidgets, or some other cross-platform libraries. not the win32 API ;)

edit:you dont need the .NET Framework for MFC cept in newer versions of it(namely 8.0)

FrOzeN

#11
Thanx for that info. However, please let's get back ontopic.

As this program will preferably will turn out to be about between 1-2Mb's compiled, I think picking a compiler is one of the major factors in this.

Quoteedit:you dont need the .NET Framework for MFC cept in newer versions of it(namely 8.0)
I know, I was just using the .NET Framework as an example of 'how it trys to make things easier' when I'd much prefer using a program which relys of resources and .dll's a computer already has, rather than a user having to obtain them thereself, or get the installer to. Eg, a .NET Framework based program would require the user to download the 20Mb Framework.
~ FrOzeN

rabbit

I like gcc/c++ on MinGW.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

FrOzeN

Any thoughts on Dev-C++ or should it only be used as an IDE while writing your program.

Seeing I'll be learning extensive amounts of C++, I don't mind the difficulty required to setup the compiler or run MakeFiles, just w/e produces the finest .exe's. :)

Also rabbit, I remember back in the 'Crack Fofo Bot' topic on StealthBot.net ages ago. You mentioned something about compacting programs etc.. could you elaborate on this and it's purpose.. thanx
~ FrOzeN

Warrior

Dev-C++ used MinGW and he used UPX to compress his bot.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?