[SOLVED] CS compiler data structure algorithm c++ 10/21/2019 CSCI 561 (156 unread)

$25

File Name: CS_compiler_data_structure_algorithm_c++_10/21/2019_CSCI_561_(156_unread).zip
File Size: 687.66 KB

5/5 - (1 vote)

10/21/2019 CSCI 561 (156 unread)
question
164 views
C++11 Compiler Options
This question was asked in context of HW1, but wasnt really answered, so I am posting this again. What optimization level option will be used to compile our C++11 code?
In HW1, the optimization level was not set (at least in the script on Vocareum), which disables most optimizations (correct me if Im wrong), but for this assignment, the runtime of the code is important, and choosing an appropriate optimization level can change the timing significantly. In my experiments, there was non-negligible difference between using no optimization setting and using even just O1.
Thank you.
Updated 2 days ago by Anonymous
the students answer, where students collectively construct a single answer
Click to start off the wiki answer
the instructors answer, where instructors collectively construct a single answer
Now we are not using any optimization since we focus on algorithm rather than language skills.
Updated 1 day ago by Qian Wang
followup discussions for lingering questions and comments
Resolved
Unresolved
Bo Wang 1 day ago Paging @Qian Wang
Resolved
Unresolved
https://piazza.com/class/jzob0qt1owq15p?cid=687
1/2
2wh

10/21/2019 CSCI 561 (156 unread)
Anonymous 1 day ago
I understand that the focus is on the algorithm, but making your agent run in the appropriate amount of time is a critical part of this assignment, and not using any optimization level will make C++11 codes run considerably slowly. Besides, in the last assignment plain C++ (not 11) was using -O2 setting, so can I please request that -O2 be used with C++/C++11 codes in this assignment? This really does not change anything in the assignment specification.
Tao Yao 5 hours ago In addition, I think O2 helps us to more focus on algorithms rather than programming language since O2 enables us to utilize abstract data structures (Vector, Map, etc.) in STL and advanced language features to save time on coding the game environment without decreasing much performance.
Anonymous 4 hours ago I agree.
Qian Wang 3 hours ago sounds reasonable, adding O2 for c++ is my mistake. O2 will be added.
https://piazza.com/class/jzob0qt1owq15p?cid=687
2/2

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS compiler data structure algorithm c++ 10/21/2019 CSCI 561 (156 unread)
$25