Required tools for playing around with memory:
hexdumpobjdumpreadelfxxdgcore
| IF(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm") | |
| add_definitions (-mfloat-abi=softfp -mfpu=neon) | |
| ELSE(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm") | |
| ENDIF(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm") |
| if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) { | |
| // path/to/whatever does not exist | |
| } | |
| if _, err := os.Stat("/path/to/whatever"); !os.IsNotExist(err) { | |
| // path/to/whatever exists | |
| } |
| // g++ prog.cc -Wall -Wextra -O2 -march=native -std=gnu++1y | |
| #include <cxxabi.h> | |
| #include <algorithm> | |
| #include <functional> | |
| #include <iostream> | |
| #include <typeinfo> | |
| namespace detail |
For every developer, terminal is their weapon, so why don't you customize it to become a powerful, and a beautiful weapon?
Powerline style refers to a terminal style that helps developer to keep track of their workflow easily, allows them to have perfect visual on current directories and new changes. It is also git recognizable, and failure detector that will help your development process becomes more interact and much faster.
In this guideline, I will introduce you with 2 smart shells: Zsh and Fishshell. Both are perfect for the development jobs due to its rich of resources, and user-friendly.
| # Requirements: | |
| # clang - The classes/structs you want to dump must be used in code at least once, not just defined. | |
| # MSVC - The classes/structs you want to dump must have "MEOW" in the name for "reportSingleClass" to work. | |
| # Usage: | |
| # $ make dump_vtables file=test.cpp | |
| dump_vtables: | |
| clang -cc1 -fdump-record-layouts -emit-llvm $(file) > clang-vtable-layout-$(file).txt | |
| clang -cc1 -fdump-vtable-layouts -emit-llvm $(file) > clang-record-layout-$(file).txt | |
| g++ -fdump-lang-class=$(file).txt $(file) | |
| cl.exe $(file) /d1reportSingleClassLayoutMEOW > msvc-single-class-vtable-layout-$(file).txt |