rust vs cpp diff
| // clang++ -S -std=c++11 -emit-llvm -vec.cpp -o vec_cpp.ll | |
| // lines: 891 | |
| // ( wc -l vec_cpp.ll ) | |
| // with stripped blank lines and comments: | |
| // ( sed '/^\s*;/d;/^\s*$/d' vec_cpp.ll | wc -l ) | |
| // 698 | |
| #include <cinttypes> | |
| #include <vector> | |
| int main(int, char* []) { | |
| auto v = std::vector<int32_t>(0, 100); | |
| for (auto n : v) { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment