Open ShannonBase opened 5 months ago
#include <iostream>
int main() {
#if defined(__riscv)
std::cout << "This is a RISC-V platform." << std::endl;
#elif defined(__aarch64__)
std::cout << "This is an ARM 64-bit platform (AArch64)." << std::endl;
#elif defined(__x86_64__) || defined(_M_X64)
std::cout << "This is an x86 64-bit platform." << std::endl;
#elif defined(__i386) || defined(_M_IX86)
std::cout << "This is an x86 32-bit platform." << std::endl;
#else
std::cout << "Unknown platform." << std::endl;
#endif
return 0;
}
Summary
To ship to ARM and RISC-V platform, and do verification.