Pragma Comments

Revision en1, by dx24816, 2018-07-14 20:55:29

Hello,

I use to include the following code into my headers because I saw others doing the same.

pragma comment(linker, "/stack:200000000")

pragma GCC optimize("Ofast")

pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")

For the most part, it has made some of my programs that previously got TLE get AC. However I recently kept getting TLE with these comments in the header of my program for a problem, and when I removed them, I got AC. So I'm wondering what do these comments do, and when should I use them? Thanks in advance!

-dx24816

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English dx24816 2018-07-14 21:15:06 210
en2 English dx24816 2018-07-14 20:56:57 24
en1 English dx24816 2018-07-14 20:55:29 593 Initial revision (published)