文档详情

why.gcc.in.c++.pdf

发布:2016-03-08约1.73万字共17页下载文档
文本预览下载声明
Write gcc in C++ Ian Lance Taylor Google Write gcc in C++ Ian Lance Taylor Google June 17, 2008 C++ Write gcc in C++ Ian Lance Taylor Google ◮ C++ is a standardized, well known, popular language. ◮ C++ is nearly a superset of C90 used in gcc. ◮ The C subset of C++ is just as efficient as C. ◮ C++ supports cleaner code in several significant cases. ◮ C++ makes it easier to write cleaner interfaces by making it harder to break interface boundaries. ◮ C++ never requires uglier code. ◮ C++ is not a panacea but it is an improvement. VEC or vector? Write gcc in C++ Ian Lance Taylor Google / ∗ C ∗/ typedef struct loop ∗ loop p ; DEF VEC P ( loop p ) ; DEF VEC ALLOC P ( loop p , gc ) ; VEC ( loop p , gc ) ∗ superloops ; VEC reserve ( loop p , gc , superloops , depth ) ; VEC index ( loop p , superloops , depth ) VEC quick push ( loop p , superloops , fa the r ) ; VEC or vector? Write gcc in C++
显示全部
相似文档