Skip to content

Instantly share code, notes, and snippets.

View ruslo's full-sized avatar

Ruslan Baratov ruslo

  • Bali
  • 13:35 (UTC +08:00)
View GitHub Profile
> cat foo.cpp
class A {
public:
A() {
a_[0] = 0x1;
a_[1] = 0x15;
a_[2] = 0x34;
}
int result(int value) const {
### No reference test
> cat a.cpp
int boo(int);
int foo(int a) {
return boo(a);
}
> g++ -O3 a.cpp -c -o a.o
### No reference test
> cat a.cpp
int foo(int a) {
return a + 3;
}
> g++ -O3 a.cpp -c -o a.o
> objdump -d a.o