Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: ship to ARM and RISC-V #180

Open
ShannonBase opened this issue May 28, 2024 · 1 comment
Open

Feature: ship to ARM and RISC-V #180

ShannonBase opened this issue May 28, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request feature it will be implemented as a new feature help wanted Extra attention is needed testing test cases

Comments

@ShannonBase
Copy link
Contributor

Summary

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

@ShannonBase ShannonBase added enhancement New feature or request help wanted Extra attention is needed feature it will be implemented as a new feature testing test cases labels May 28, 2024
@ShannonBase ShannonBase self-assigned this May 28, 2024
@ShannonBase ShannonBase pinned this issue May 28, 2024
@RingsC
Copy link
Contributor

RingsC commented Jun 30, 2024

#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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature it will be implemented as a new feature help wanted Extra attention is needed testing test cases
Projects
None yet
Development

No branches or pull requests

2 participants