why.gcc.in.c++.pdf
文本预览下载声明
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++
显示全部