Shannon-Data / ShannonBase

A MySQL HTAP Database, Open Source version of MySQL Heatwave, Powered by AI.
https://www.shannonbase.org
Other
16 stars 6 forks source link

Feature: ship to ARM and RISC-V #180

Open ShannonBase opened 5 months ago

ShannonBase commented 5 months ago

Summary

To ship to ARM and RISC-V platform, and do verification.

RingsC commented 4 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;
}