bitcoin_notebook on Nostr: bitcoin เขียนด้วยภาษา c++ source code อยู่ที่ ...
bitcoin เขียนด้วยภาษา c++
source code อยู่ที่
https://github.com/bitcoin/bitcoinศึกษาการเขียน c++
https://youtu.be/8jLOx1hD3_o?si=EklUJOQUqBhP5qAPการจะเขียนภาษา c++ ได้ต้องมี 2 อย่าง คือ
1. ide เอาไว้เขียน code ใช้ vs code
2. compiler มีหน้าที่เอา code ที่เราเขียนเป็นภาษา c++ ไป compile (แปล) เป็นภาษาเครื่อง (machine language) เพื่อให้เครื่องทำงานตามที่เราต้องการ ต่าง os ต่าง processor ก็จะมี format ต่างกัน
ควร test program ของเรากับหลายๆ compiler เพื่อให้มั่นใจว่า program ของเราจะสามารถนำไปใช้ได้ในหลาย platform
windows : mingw, msvc, clang llvm
linux : gcc
ดูว่า compiler ไหน support feature อะไรบ้าง
https://en.cppreference.com/w/cpp/compiler_supportdownload mingw + clang llvm
https://winlibs.com/ -> extract to C:\ -> add env path
test
g++ --version
clang++ --version
Install Visual Studio -> desktop development with c++
test
cl.exe
Published at
2024-03-17 18:23:35Event JSON
{
"id": "6a71f98843971a2f5912463433386c0e82af4580c112421a6b3f8a1bc3083345",
"pubkey": "de82b21941f4b33e1851d46f3f001b88fc2f5ac32c439f37ebfb968d4ea70c86",
"created_at": 1710699815,
"kind": 1,
"tags": [],
"content": "bitcoin เขียนด้วยภาษา c++\nsource code อยู่ที่\nhttps://github.com/bitcoin/bitcoin\n\nศึกษาการเขียน c++\nhttps://youtu.be/8jLOx1hD3_o?si=EklUJOQUqBhP5qAP\n\nการจะเขียนภาษา c++ ได้ต้องมี 2 อย่าง คือ\n1. ide เอาไว้เขียน code ใช้ vs code\n2. compiler มีหน้าที่เอา code ที่เราเขียนเป็นภาษา c++ ไป compile (แปล) เป็นภาษาเครื่อง (machine language) เพื่อให้เครื่องทำงานตามที่เราต้องการ ต่าง os ต่าง processor ก็จะมี format ต่างกัน\n\nควร test program ของเรากับหลายๆ compiler เพื่อให้มั่นใจว่า program ของเราจะสามารถนำไปใช้ได้ในหลาย platform\nwindows : mingw, msvc, clang llvm\nlinux : gcc\n\nดูว่า compiler ไหน support feature อะไรบ้าง\nhttps://en.cppreference.com/w/cpp/compiler_support\n\ndownload mingw + clang llvm\nhttps://winlibs.com/ -\u003e extract to C:\\ -\u003e add env path\n\ntest\ng++ --version\nclang++ --version\n\nInstall Visual Studio -\u003e desktop development with c++\n\ntest\ncl.exe",
"sig": "53c8f63e7e43e23536fe9ecf2d5e0c7e676597a228f633c00e41558065fe52611535db940666321afd71399852902ccea67e82cbbb2ef943c12bf932ee0c1718"
}