SERVING THE QUANTITATIVE FINANCE COMMUNITY

 
User avatar
Cuchulainn
Posts: 59665
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Basic usage -- Visual Studio

March 14th, 2015, 4:11 pm

And for those interested Excel add ins in C++ and C#Think of VS2013 as learning to drive.
 
User avatar
Cuchulainn
Posts: 59665
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Basic usage -- Visual Studio

March 14th, 2015, 4:14 pm

QuoteOriginally posted by: outrunQuoteOriginally posted by: CuchulainnQuoteOriginally posted by: outrunI picked a "C++ console project without precompiled headers", but it's not C++ and it has precompiled headers, ... Pure crap, who would design something like that???RTFM Google is your friendhttps://msdn.microsoft.com/en-us/library/7zc28563.aspxThey name things wrong, it makes windows developers confused people. Why not call it "Microsoft C++ flavour, and don't bother with the precompiled headers checkbox because we will create stdafx anyway".Try it for yourself, the tool creates bad developers, and they do it on purpose.You should ask Microsoft. Tell them they have ruined people.I also use mingw and CODE::BLOCKS and is similar to VS. Think of it as moving to a new culture and learning that new culture. If it does not klik, don't use it.Need VS for a project? It seems to be popular.
Last edited by Cuchulainn on March 13th, 2015, 11:00 pm, edited 1 time in total.
 
User avatar
Cuchulainn
Posts: 59665
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Basic usage -- Visual Studio

March 14th, 2015, 4:20 pm

Working with project settings
 
User avatar
Cuchulainn
Posts: 59665
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Basic usage -- Visual Studio

March 15th, 2015, 7:41 am

By default, VS creates projects in Debug mode, are you using Release?
 
User avatar
Polter
Posts: 2526
Joined: April 29th, 2008, 4:55 pm

Basic usage -- Visual Studio

March 15th, 2015, 11:33 am

Some other things you can try:Compiler Options Listed by Category: http://msdn.microsoft.com/en-us/library ... aspx/favor (Optimize for Architecture Specifics): http://msdn.microsoft.com/en-us/library ... 05.aspx/Os, /Ot (Favor Small Code, Favor Fast Code): http://msdn.microsoft.com/en-us/library ... ye.aspx/Ox (Full Optimization): http://msdn.microsoft.com/en-us/library ... .aspx/arch (x64): http://msdn.microsoft.com/en-us/library/jj620901.aspx // consider AVX, AVX2 -- although the resulting codegen can sometimes be slower than SSE2/Gv: http://msdn.microsoft.com/en-us/library/46t77ak2.aspx // the __vectorcall calling convention may pass more arguments via registers/Qvec-report (Auto-Vectorizer): http://msdn.microsoft.com/en-us/library/jj614596.aspx // see Auto-Parallelization and Auto-Vectorization: http://msdn.microsoft.com/en-us/library ... cendentals : http://msdn.microsoft.com/en-us/library ... 74.aspx/fp: http://msdn.microsoft.com/en-us/library/e7s85ffb.aspx // see if you can get away with /fp:fast -- comparable to GCC's -ffast-math (enabled automatically if you use -Ofast)BTW, regarding IDEs, Qt Creator also supports MSVC (in addition to GCC) on Windows:http://doc.qt.io/qtcreator/http://doc.q ... :QtCreator
Last edited by Polter on March 14th, 2015, 11:00 pm, edited 1 time in total.
 
User avatar
Traden4Alpha
Posts: 23951
Joined: September 20th, 2002, 8:30 pm

Basic usage -- Visual Studio

March 15th, 2015, 12:33 pm

QuoteOriginally posted by: outrunQuoteOriginally posted by: CuchulainnQuoteOriginally posted by: outrunI picked a "C++ console project without precompiled headers", but it's not C++ and it has precompiled headers, ... Pure crap, who would design something like that???RTFM Google is your friendhttps://msdn.microsoft.com/en-us/library/7zc28563.aspxThey name things wrong, it makes windows developers confused people. Why not call it "Microsoft C++ flavour, and don't bother with the precompiled headers checkbox because we will create stdafx anyway".Try it for yourself, the tool creates bad developers, and they do it on purpose.It's Microsoft's intentional strategy of "embrace and extend" to corrupt a standard so that it only works on Windows.
 
User avatar
Cuchulainn
Posts: 59665
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Basic usage -- Visual Studio

March 15th, 2015, 4:20 pm

QuoteAnd I see new C++ developers here posting snippets containing that, and they have no idea that it's non-standard, they think C++ programs have a _tmain() because that's what VS created for them when they started a new C++ project.Not if you create an EMPTY Console project. They clicked on the wrong project type, that's all. C++ is not the issue here, it's the IDE.Quote It's Microsoft's intentional strategy of "embrace and extend" to corrupt a standard so that it only works on Windows.I don't agree exactly. Of course, in the free world of laissez-faire you are free to choose an alternative. There's nothing stopping you.
Last edited by Cuchulainn on March 14th, 2015, 11:00 pm, edited 1 time in total.
ABOUT WILMOTT

PW by JB

Wilmott.com has been "Serving the Quantitative Finance Community" since 2001. Continued...


Twitter LinkedIn Instagram

JOBS BOARD

JOBS BOARD

Looking for a quant job, risk, algo trading,...? Browse jobs here...


GZIP: On