- Learn WebAssembly
- Mike Rourke
- 234字
- 2021-08-13 15:38:49
C and C++
C and C++ are low-level programming languages that have been around for over 30 years. C is procedural and doesn't inherently support object-oriented programming concepts such as classes and inheritance, but it's fast, portable, and widely used.
C++ was built to fill the gaps in C by adding features such as operator overloading and improved type checking. Both languages consistently rank in the top 10 most popular programming languages, which make them ideally suited for the MVP:

C and C++ support is also baked into Emscripten, so in addition to simplifying the compilation process, it allows you to take advantage of WebAssembly's full capabilities. It is also possible to compile C/C++ code down to a .wasm file using LLVM. LLVM is a collection of modular and reusable compiler and toolchain technologies. In a nutshell, it's a framework that simplifies the configuration of a compilation process from source code to machine code. If you made your own programming language and would like to build a compiler, LLVM has tools to simplify the process. I'll cover how to compile C/C++ into .wasm files using LLVM in Chapter 10, Advanced Tools and Upcoming Features.
The following snippet demonstrates how to print Hello World! to the console using C++:
#include <iostream>
int main() {
std::cout << "Hello, World!\n";
return 0;
}
- Kubernetes實(shí)戰(zhàn)
- Visual Basic編程:從基礎(chǔ)到實(shí)踐(第2版)
- 跟小海龜學(xué)Python
- MariaDB High Performance
- 可解釋機(jī)器學(xué)習(xí):模型、方法與實(shí)踐
- Learning Unity 2D Game Development by Example
- HTML5秘籍(第2版)
- Microsoft Dynamics AX 2012 R3 Financial Management
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)教程(Windows 7+Office 2010)
- C++ System Programming Cookbook
- IBM RUP參考與認(rèn)證指南
- Kotlin語言實(shí)例精解
- 計(jì)算機(jī)程序的構(gòu)造和解釋(JavaScript版)
- 你必須知道的.NET(第2版)
- 跟小樓老師學(xué)用Axure RP 9:玩轉(zhuǎn)產(chǎn)品原型設(shè)計(jì)