Log in
My Tools
Shell (Sow)
Shell (Guacamole)
Shell (Tabby)
Code Explorer
Matrix Chat
My Web Server
My Digital Portfolio
My IGIS
Proficiency Progress
Sash Awards
CEG-ID
Keys and Commands
Guacamole Keys
Emacs Keys
Magit Keys
Screen Keys
LLDB Commands
Overviews
Experiences Overview
Experiences Explorer
Topic Explorer
Curricula Assistant
Trailblazers
References
Swift Live Reference
Glossary
Common Errors
References
Code Snippets
Navigation
Experiences Overview
Google
Special Users
Authors
Guides
Tools
What links here
Related changes
Special pages
Printable version
Permanent link
Page information
Browse properties
Hello World
From Coder Merlin
Jump to:
navigation
,
search
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
Contents
1
Assembly Language
2
C
3
C++
4
Java
5
Python
6
Swift
Assembly Language
[
edit
]
CoderMerlin™ Code Explorer: W0000 (1)
🟢
Assembly
C
C++
Java
Python
Swift
.global _start .text _start: # write(1, message, 13) mov $1, %rax # system call 1 is write mov $1, %rdi # file handle 1 is stdout mov $message, %rsi # address of string to output mov $13, %rdx # number of bytes syscall # invoke operating system to do the write # exit(0) mov $60, %rax # system call 60 is exit xor %rdi, %rdi # we want return code 0 syscall # invoke operating system to exit message: .ascii "Hello, world!"
Hide Compilation Output
Sync
Broadcast
C
[
edit
]
CoderMerlin™ Code Explorer: W0000 (2)
🟢
Assembly
C
C++
Java
Python
Swift
#include
int main() { printf("Hello, world!"); return 0; }
Hide Compilation Output
Sync
Broadcast
C++
[
edit
]
CoderMerlin™ Code Explorer: W0000 (3)
🟢
Assembly
C
C++
Java
Python
Swift
#include
int main() { std::cout << "Hello, world!"; return 0; }
Hide Compilation Output
Sync
Broadcast
Java
[
edit
]
CoderMerlin™ Code Explorer: W0000 (4)
🟢
Assembly
C
C++
Java
Python
Swift
class main { public static void main(String[] args) { System.out.println("Hello, world!"); } }
Hide Compilation Output
Sync
Broadcast
Python
[
edit
]
CoderMerlin™ Code Explorer: W0000 (5)
🟢
Assembly
C
C++
Java
Python
Swift
print("Hello, world!")
Hide Compilation Output
Sync
Broadcast
Swift
[
edit
]
CoderMerlin™ Code Explorer: W0000 (6)
🟢
Assembly
C
C++
Java
Python
Swift
print("Hello, world!")
Hide Compilation Output
Sync
Broadcast
https://www.facebook.com/Coder-Merlin-101592328319584/
https://teespring.com/stores/coder-merlin
https://twitter.com/codermerlin
https://discord.gg/Hj7mTVtMbH
https://discourse.codermerlin.com/
https://openbadges.org/
Designed with pride in Silicon Valley, CA, USA