Hello (blog) World!
Date: June 1, 2013
Hi All!
My name is Jakub Jedryszek. There are many reasons why I start this blog. One of them is this article. The other one is the willingness to share my thoughts with the World. Thanks to Michal Franc for a motivation :)
I created Hello World in couple of languages using Crayon Syntax Highlighter (code in C#, Ruby, Python, Java and C) and SyntaxHighlighter Evolved (code in PHP). Please comment which syntax highlighter are you using and why.
C#:
Console.WriteLine("Hello (blog) World!");
Ruby:
puts 'Hello (blog) World!'
Python:
print 'Hello (blog) World!'
Java:
System.out.println("Hello (blog) World!");
C:
main()
{
printf("Hello (blog) World!");
}
PHP:
<?php
echo "Hello (blog) World!";
?>
Assembler (AT&T syntax):
.section .rodata
string:
.ascii "Hello (blog) World!\n"
length:
.quad . -string #Dot = 'here'
.section .text
.globl _start #Make entry point visible to linker
_start:
movq $4, %rax #4=write
movq $1, %rbx #1=stdout
movq $string, %rcx
movq length, %rdx
int $0x80 #Call Operating System
movq %rax, %rbx #Make program return syscall exit status
movq $1, %rax #1=exit
int $0x80 #Call System Again
Categories:
blog