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_support

download 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

Reply to this note

Please Login to reply.

Discussion

No replies yet.