Does V support cross compile source to different arch platforms(instructions)? #18185
-
Hi everyone, I am a newer on V. I am trying to use V running on embedded linux, such as armv7, armv8, arm64 instructions. I found the V can be compile and run on rpi. Does it support cross compile source code to native binary on each arch platform? The go support use GOOS and GOARCH to specific which platform you want. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Sorry, I thought that link had more specific info on architectures. And of course V isn't working on my system now so I can't just figure it out. BTW, this is likely an issue with Dropbox for me rather than V itself. |
Beta Was this translation helpful? Give feedback.
-
V currently only fully supports arm64 and amd64. There is some support for 32-bit, but I'm not sure of the status. If you want to compile on other architectures, just compile with |
Beta Was this translation helpful? Give feedback.
-
@Blackrose this is planned. Later by the end of this year. |
Beta Was this translation helpful? Give feedback.
V currently only fully supports arm64 and amd64. There is some support for 32-bit, but I'm not sure of the status. If you want to compile on other architectures, just compile with
v -o file.c
to output the C code, then compile with whichever compiler works for you.