Visual Studio Express / Windows SDK?

This is a discussion on Visual Studio Express / Windows SDK? within the C++ Programming forums, part of the General Programming Boards category; You are right of course. This is just one very specific case, not a general statement. SSE probably won't help. ...

  1. #16
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183
    You are right of course. This is just one very specific case, not a general statement.

    SSE probably won't help. I do almost no floating point computations in the code. Didn't help for GCC, either ("-march=native" means optimize for the platform GCC is running on, and for a Core 2, which I am using, that should include SSE).

  2. #17
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,768
    *shrug*
    Well, just remember that I had enabled every optimization I can find in the options and copied the command line.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #18
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    611
    Not quite every optimization, depending on if you use the STL or not. If you do, you'll want to define _SECURE_SCL equal to 0, otherwise every use of iterators goes through debugging checks.

  4. #19
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,768
    That's not a command line, though, is it?
    It is suitable for a final release, however.
    But during development builds, I would not recommend it since it enables debug checks.
    Last edited by Elysia; 01-21-2009 at 11:09 AM.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #20
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,888
    Quote Originally Posted by Elysia
    That's not a command line, though, is it?
    It would be on the command line after: /D _SECURE_SCL=0

    EDIT:
    At least that's what Visual Studio shows me after I entered _SECURE_SCL=0 into the preprocessor definitions option.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #21
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,768
    *shrug*
    Yet again, I did not consider preprocessor definitions. I only copied the command line and those preprocessor definitions are the default ones.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #22
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183
    I guess "/Ox" (maximum optimization) should enable all generic optimizations?

    I will try the _SECURE_SCL thing tonight. I don't use much STL stuff in the inner loops, though. The code is fairly low level.

  8. #23
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183
    I tried ICC on my Linux host, and its resulting binary is ~2% slower than GCC's...

    I guess my program just likes GCC more than any other compiler for some reason.

    Fun to look at fast scrolling ICC output, though .

    Code:
    ipo: remark #11001: performing single-file optimizations
    ipo: remark #11005: generating object file /tmp/ipo_iccY1Q2vY.o
    Brainless.cpp(516): (col. 17) remark: LOOP WAS VECTORIZED.
    Brainless.cpp(523): (col. 21) remark: LOOP WAS VECTORIZED.
    Brainless.cpp(532): (col. 4) remark: LOOP WAS VECTORIZED.
    Brainless.cpp(533): (col. 4) remark: LOOP WAS VECTORIZED.
    Brainless.cpp(919): (col. 13) remark: LOOP WAS VECTORIZED.
    Brainless.cpp(235): (col. 9) remark: BLOCK WAS VECTORIZED.
    Brainless.cpp(270): (col. 9) remark: LOOP WAS VECTORIZED.
    misc.cpp(11): (col. 7) remark: LOOP WAS VECTORIZED.
    AI.cpp(110): (col. 2) remark: LOOP WAS VECTORIZED.
    AI.cpp(361): (col. 13) remark: LOOP WAS VECTORIZED.
    AI.cpp(87): (col. 4) remark: LOOP WAS VECTORIZED.
    movegen.cpp(1576): (col. 3) remark: LOOP WAS VECTORIZED.
    movegen.cpp(1469): (col. 3) remark: LOOP WAS VECTORIZED.
    movegen.cpp(1554): (col. 3) remark: LOOP WAS VECTORIZED.
    util.cpp(458): (col. 4) remark: LOOP WAS VECTORIZED.
    movegen.cpp(1149): (col. 10) remark: LOOP WAS VECTORIZED.
    AI.cpp(503): (col. 5) remark: LOOP WAS VECTORIZED.
    AI.cpp(769): (col. 17) remark: LOOP WAS VECTORIZED.
    AI.cpp(789): (col. 13) remark: LOOP WAS VECTORIZED.
    AI.cpp(848): (col. 13) remark: LOOP WAS VECTORIZED.
    AI.cpp(868): (col. 3) remark: LOOP WAS VECTORIZED.
    movegen.cpp(1421): (col. 17) remark: LOOP WAS VECTORIZED.
    AI.cpp(527): (col. 34) remark: LOOP WAS VECTORIZED.
    AI.cpp(529): (col. 21) remark: LOOP WAS VECTORIZED.
    Brainless.cpp(170): (col. 2) remark: LOOP WAS VECTORIZED.
    They make it SOUND so fast.

  9. #24
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183
    "/D _SECURE_SCL=0" didn't make any noticeable difference.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. writing windows dlls using visual studio 2008 express
    By xixpsychoxix in forum Windows Programming
    Replies: 17
    Last Post: 01-22-2009, 02:53 AM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. multiple errors generated by socket headers
    By nocturna_gr in forum Windows Programming
    Replies: 5
    Last Post: 12-16-2007, 05:33 PM
  4. Problem Compiling Program
    By wco5002 in forum C++ Programming
    Replies: 13
    Last Post: 11-06-2007, 11:56 AM
  5. Visual Studio Express for free
    By Frobozz in forum C# Programming
    Replies: 2
    Last Post: 04-29-2006, 09:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21