G++使用

Compiling with g++ Executive Summary: This document is a brief description of how to compile basic C++ programs using g++. It provides sample command lines for invoking the g++ compiler and a list of some common compiler options. What is g++? g++ is your friendly Gnu C++ compiler. g++ does not handle templates well, but you … Continue reading G++使用

Bitcoin Notes 2

Directory Contents Files An overview of these is in files.md in the Bitcoin Core documentation. .lock Bitcoin data directory lock file bitcoin.conf [optional] Contains configuration options. blkxxxx.dat [Versions prior to v0.8.0] Contains concatenated raw blocks. Stored are actual Bitcoin blocks, in network format, dumped to disk raw. blkindex.dat [Versions prior to v0.8.0] Indexing information used with blkxxxx.dat __db.xxx … Continue reading Bitcoin Notes 2

Bitcoin Notes

The UTXO of a coinbase transaction has the special condition that it cannot be spent (used as an input) for at least 100 blocks. This temporarily prevents a minerfrom spending the transaction fees and block reward from a block that may later be determined to be stale (and therefore the coinbase transaction destroyed) after a block chain fork. All transactions, including the coinbase transaction, are encoded into blocks in binary rawtransaction format. In the first … Continue reading Bitcoin Notes

GNU Build Systems Basis

From: https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html Compiling, Linking and Building C/C++ Applications 1.  GCC (GNU Compiler Collection) 1.1  A Brief History and Introduction to GCC The original GNU C Compiler (GCC) is developed by Richard Stallman, the founder of the GNU Project. Richard Stallman founded the GNU project in 1984 to create a complete Unix-like operating system as free software, to promote freedom and … Continue reading GNU Build Systems Basis

Linux system basis

 From: https://www3.ntu.edu.sg/home/ehchua/programming/howto/Unix_Basics.html 1.  Bash Shell Basics A shell (or command interpreter, or command prompt) is a program that lets you interact with the Operating System (OS) by issuing text-based commands. It is called a shell, as it protects or shields you from the complicated tasks of interacting with the OS directly. A shell provides a set of commands. It also has its … Continue reading Linux system basis