java:
publicclasshelloworld
{
publi360问答cstaticvoidmain(String[]args)
{
System.out.println("Helloworld!");
}
}python2:
print"Helloworld!"python3:
print("Helloworld!")C/C++:
#include
intmain()
{
printf("Hell式争观来输药伤州持oworld!
")宁织客找裂余;
return0;
厂}Linuxintelasm(由于百度知道不支持汇编语言,因此可读性会差一点):
[sectiondata]
msgdb"Helloworld!义",0ax
lenequ$-msg
[sectiontext]
global_start
_start:
moveax,4
movebx,1
mo鸡谁世况洋房由爱vecx,msg
movedx,len
int0x80
moveax,1
movebx,0
int0x80
LinuxAT&Tasm(由于百度知道不支持汇编语言,因此可读性会差一点):
.data
msg:
.ascii"Helloworld!
"
len=.-msg
.text
.globl_start
_star压顺养更落度t:
movl$4,%eax
movl$1,%ebx
movl$msg,%ec满济战林季经宁积洋重x
movl$len,%edx
int$0x80
movl$1,%eax
m乐吧此升用调孩密建练了ovl$0,%ebx
int$差0x80
php:
标签:helloworld,代码