Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
MyFirst Program
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
;nasm global _start section .data message: db 'Hello world!',10 ; 'Hello world!' plus a linefeed character section .text _start: mov rax,1 ; The system call for write mov rdi,1 ; argument #1 in rdi, where to write mov rsi, message ; argument #2 in rsi: where does the string start mov rdx,14 ; argument #3 in rdx: how many bytes to write syscall ; this instruction invokes a system call mov rax, 60 ; mov rdi, 0 ; xor rdi, rdi ; syscall
Show compiler warnings
[
+
]
Show input
Compilation time: 0.24 sec, absolute running time: 0.14 sec, cpu time: 0 sec, memory peak: 5 Mb, absolute service time: 0,55 sec
edit mode
|
history
|
discussion
Hello world!