This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *.aux | |
| *.log | |
| *.dvi | |
| *.snm | |
| *.nav | |
| *.synctex* | |
| *.toc | |
| *.out | |
| auto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Printing structs. | |
| // http://research.swtch.com/gotour | |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Compilation: | |
| // $ go build merge.go | |
| // | |
| // Build: | |
| // $ ./merge FILE | |
| package main | |
| import ( | |
| "bufio" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *.pdf binary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # In RVO, the compiler figures out the local instance of the object to be a return value, | |
| # the compiler allocates the instance directly in the caller context. | |
| # | |
| # See: http://demin.ws/blog/english/2012/04/14/return-vector-by-value-or-pointer/ | |
| # | |
| $ g++ -g rvo.cc | |
| rvo.cc: In member function 'std::vector<int, std::allocator<int> > Klass::Func(const std::vector<int, std::allocator<int> >&)': | |
| rvo.cc:16: warning: conversion to 'int' from 'size_t' may alter its value | |
| $ gdb -q a.out | |
| Reading symbols from /work/tetsuo-s/cpp-sandbox/a.out...done. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ uname -a | |
| Darwin shouga 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64 | |
| $ cat test.c | |
| #include <stdio.h> | |
| int main(void) { | |
| printf("test\n"); | |
| return 0; | |
| } | |
| $ gcc -g test.c | |
| $ ./gdb a.out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source /usr/local/go/src/pkg/runtime/runtime-gdb.py | |
| b main.main |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.