Best way to quickly explore/grok open source C/C++ projects? [duplicate]

I’m looking for a suggested workflow for quickly being able to download various c/c++ open source projects and then begin intelligently navigate sources.

“Intelligently” means being able to jump around to usages, definitions, implementations of a particular symbol, both in the downloaded code base, and also the headers of referenced libraries perhaps installed in /usr/local or /System/Frameworks etc.

this code jumping could be driven by etags, ctags, gnu global, eclipse CDT indexer, Xcode’s indexer, I’m open to anything, but I have no idea what is the best solution for most cases out there.

Shortly afterwards I would like to begin stepping through unit tests, examples, demos in the debugger so I can better grok how the code works

Obviously, this isn’t going to be possible for every project out there.. but most of the projects I am interested in are either autotools or cmake based — In general, I don’t really care what IDE (emacs, vim, xcode, eclipse, etc) I use, and I don’t mind running a command line debugger — I just want to quickly download a C/C++ project, “fool around with it” at a source level, and then move on if its not interesting.

My question is particularly directed to the guy or gal super hacker who routinely explores several different large C/C++ projects every few days/weeks –> how do YOU productively do this?

(My background/experience level is that I know enough about c/c++ tooling to get things to build/or debug a broken build on several different os’es usually within a few minutes, but it can take hours before I get to the point where I can take a large project and get to the point where I am stepping through examples in the debugger. I have a feeling this is because I try to use modern IDE’s, but I’d be better of just using ‘old school’ tools. when dealing with jvm stuff — it is usually pretty quick to get to a place where one can get intellij to grok code and start debugging — I’d like to replicated this as much as possible in C/C++)

thanks!

1

Follow the money. And by money I mean data. And of course take advantage of intelligent naming conventions and comments as you go (if there are any). In truly rotten codebases simply searching for references and the flow of passed/returned params often helps me more than IDE features. In well-structured code, I often find setting breakpoints and stepping through given sections of it is a great way to get an early idea of how it all works. This is less helpful when the code is completely bat!@#$ and is more likely to result in a migraine.

Oddly enough the exact opposite seems true when debugging. You can often simply examine references to figure out where a problem is in clean/well-structured code whereas the only way to find a problem in a complete disaster is to walk through all umpteen dozen calls of complete tomfoolery until you see where it’s breaking.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

Best way to quickly explore/grok open source C/C++ projects? [duplicate]

I’m looking for a suggested workflow for quickly being able to download various c/c++ open source projects and then begin intelligently navigate sources.

“Intelligently” means being able to jump around to usages, definitions, implementations of a particular symbol, both in the downloaded code base, and also the headers of referenced libraries perhaps installed in /usr/local or /System/Frameworks etc.

this code jumping could be driven by etags, ctags, gnu global, eclipse CDT indexer, Xcode’s indexer, I’m open to anything, but I have no idea what is the best solution for most cases out there.

Shortly afterwards I would like to begin stepping through unit tests, examples, demos in the debugger so I can better grok how the code works

Obviously, this isn’t going to be possible for every project out there.. but most of the projects I am interested in are either autotools or cmake based — In general, I don’t really care what IDE (emacs, vim, xcode, eclipse, etc) I use, and I don’t mind running a command line debugger — I just want to quickly download a C/C++ project, “fool around with it” at a source level, and then move on if its not interesting.

My question is particularly directed to the guy or gal super hacker who routinely explores several different large C/C++ projects every few days/weeks –> how do YOU productively do this?

(My background/experience level is that I know enough about c/c++ tooling to get things to build/or debug a broken build on several different os’es usually within a few minutes, but it can take hours before I get to the point where I can take a large project and get to the point where I am stepping through examples in the debugger. I have a feeling this is because I try to use modern IDE’s, but I’d be better of just using ‘old school’ tools. when dealing with jvm stuff — it is usually pretty quick to get to a place where one can get intellij to grok code and start debugging — I’d like to replicated this as much as possible in C/C++)

thanks!

1

Follow the money. And by money I mean data. And of course take advantage of intelligent naming conventions and comments as you go (if there are any). In truly rotten codebases simply searching for references and the flow of passed/returned params often helps me more than IDE features. In well-structured code, I often find setting breakpoints and stepping through given sections of it is a great way to get an early idea of how it all works. This is less helpful when the code is completely bat!@#$ and is more likely to result in a migraine.

Oddly enough the exact opposite seems true when debugging. You can often simply examine references to figure out where a problem is in clean/well-structured code whereas the only way to find a problem in a complete disaster is to walk through all umpteen dozen calls of complete tomfoolery until you see where it’s breaking.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật