-
Notifications
You must be signed in to change notification settings - Fork 63
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
Support for non-x86 architectures #17
Comments
Indeed, it's "on the roadmap" so to speak. The idea is that most of the code should be as portable as reasonable, with only the required amount of assembly. I'm also planning "C" benchmarks for various things: some things are only reasonable in assembly, but many can be done in C too, making them automatic on other archs. I do have an Android phone, so probably I can help do this as well. Right now I'm working on the x86 performance counter support, however, and this is almost done. |
If you want, I can give you an SSH account on a Raspberry Pi 3 I have sitting around for development, running Fedora 26. |
OK, I may take you up on that offer if it's still open when I get to this! |
I just came across Apparently it's been around for a while (at least since clang 3.4, didn't bother checking past that), though it doesn't work everywhere. According to a SO answer it does work on AArch64… |
@nemequ - thanks for the note, I didn't know about it! Some thoughts (probably most of this is not news to you, but it's helpful for me to write it anyways): On x86 it uses Unfortunately, godbolt doesn't seem to have any clang-ARM targets (it does have gcc-ARM, but gcc doesn't support this builtin). All that to say that if the compiler in question on ARM implements Now the more interesting timer is the [0] Except on a small slice of decade-old CPUs around the time frequency scaling was becoming popular where [1] Of course there is the small problem that nearly all of the benchmarks themselves are written not in C/C++ but in x86 asm, so those naturally won't work on ARM. Still it would be easy to port most simple benchmarks over and the idea is to have C++ version of the ones that can be expressed without asm. |
Seems like this would be pretty difficult, but I'd love to have something like this working on other architectures, especially ARM.
The text was updated successfully, but these errors were encountered: