Moo... moo...
Programmer Humor
4
Posts
4
Posters
2
Views
-
This post did not contain any content.
-
This post did not contain any content.
Actually, in Java 24 it's:
void main() { println("Hello World"); }
-
Actually, in Java 24 it's:
void main() { println("Hello World"); }
Oh that's interesting. It kinda reminds me of the C# top level statements feature.
This still creates the function main in the normal way, right?
-
This post did not contain any content.
The assembly would be:
Mov rax,1
Mov rdx, 0
Mov rsi, buffer
Mov rdi, buffer.length
Syscall
Mov rax,57
Syscall