The V Programming Language

Simple, fast, safe language created for developing Volt, soon available for everyone.

Open source release in June 2019. Early access since April 15.
Install V from source in 0.5 seconds
wget vlang.io/v.c && gcc -o v v.c
1.9k

Will there be inline assembly in the future?

Alex
Apr 15 · 3 min read
SleepyRoy Jun 11 23:27
For example,

a := 10
asm {
mov eax, [a]
add eax, 10
mov [a], eax
}
medvednikov Jun 11 23:49
Yes, probably with `$if arch` blocks to ensure compatibility:

a := 10
$if x64 {
asm {
mov eax, [a]
add eax, 10
mov [a], eax
}
}
medvednikov Jun 11 23:55
Or simply

asm x64 {
mov eax, [a]
add eax, 10
mov [a], eax
}
Log in via GitHub to comment



Powered by vtalk, open-source blogging/forum software written in V