Hello David,David Dahlem wrote:I downloaded the 30 day trial of the new Intel C++ Compiler version 10.1.020 available here ...
https://registrationcenter.intel.com/Re ... ister.aspx
It's supposed to support the IDE integration of VS2008, but doesn't seem to work with my 2008 express version. So i'm trying to learn how to use the Intel compiler on the command line. I admit i am almost a complete dummy with compilers, and especially the command line.
I have managed to compile a simple Hello.cpp file on the Intel command line with this command - icl Hello.cpp. Could someone help a compiler idiot with the commands for multiple source files?
Thanks
Dave
Welcome to the Intel compiling group. I've been an IDE dependent before, but later on found out that compiling in command prompt is much easier.
Here's a simple tip:
1. Let's say we want to compile Fruit 2.1 src. Extract it in a folder location like c:\fruit21src
2. Start your IA-32 32-bit compiler in command prompt. Type "cd" then click space, and type the location of source, which is "c:\fruit21src". Press enter and your 'source" location will display at command prompt.
3. For ease in typing the command lines, you could prepare the long scripts in a text editor like notepad. Here's the following sample:
Code: Select all
icl -o fruit.exe *.cpp /nologo /MT /W3 /DWIN32 /DNDEBUG /D_CONSOLE /D_MBCS /G7 /Ox /QxK /Qipo /Qprof-gen
Copy and paste it at command prompt, then press "enter".
4. Run some games/epd tests without closing "console", using the "instrumented" engine - fruit.exe. Collect enough profiling data - .dyn files.
5. After profiling, compile your optimized code using the same flags. just replace /Qprof-gen with /Qprof-use. You'll now have Fruit.exe with PGO.
For ease again, here is your last command lines:
Code: Select all
icl -o fruit.exe *.cpp /nologo /MT /W3 /DWIN32 /DNDEBUG /D_CONSOLE /D_MBCS /G7 /Ox /QxK /Qipo /Qprof-use
I hope this helps David.
Denis