关闭→
当前位置:尚之范>生活>心理>helloworld指令怎么写

helloworld指令怎么写

尚之范 人气:1.2W
helloworld指令怎么写

java:

public class helloworld{ public static void main(String []args) { tln("Hello world!") }}

python2:

print "Hello world!"

python3:

print ("Hello world!")

C/C++:

#include &ltstdio.h>int main(){ printf("Hello world!n") return 0}

Linux intel asm(由于知道不支持汇编语言,因此可读性会差一点):[section data]msg db "Hello world!", 0axlen equ $ - msg[section text]global _start_start: mov eax, 4 mov ebx, 1 mov ecx, msg mov edx, len int 0x80 mov eax, 1 mov ebx, 0 int 0x80Linux AT&T asm(由于知道不支持汇编语言,因此可读性会差一点):msg: i "Hello world!n"len = . - l _start_start: movl $4, %eax movl $1, %ebx movl $msg, %ecx movl $len, %edx int $0x80 movl $1, %eax movl $0, %ebx int $0x80php:

<?phpecho "Hello world!"?>

TAG标签:#指令 #helloworld #