Code Golf: Code Golf: Difference between revisions
Content added Content deleted
VincentARM (talk | contribs) (add task to arm assembly to raspberry pi) |
VincentARM (talk | contribs) (add task to aarch64 assembly for raspberry pi) |
||
Line 13: | Line 13: | ||
Without string literals, this is 60 bytes long. |
Without string literals, this is 60 bytes long. |
||
<syntaxhighlight lang="11l">L(c)[37,9,2,3,70,33,9,10,0]{print(end' Char(code' c(+)102))}</syntaxhighlight> |
<syntaxhighlight lang="11l">L(c)[37,9,2,3,70,33,9,10,0]{print(end' Char(code' c(+)102))}</syntaxhighlight> |
||
=={{header|AArch64 Assembly}}== |
|||
{{works with|as|Raspberry Pi 3B version Buster 64 bits <br> or android 64 bits with application Termux }} |
|||
<syntaxhighlight lang AArch64 Assembly> |
|||
/* ARM assembly AARCH64 Raspberry PI 3B */ |
|||
/* program codegolf64.s */ |
|||
/*********************************/ |
|||
/* Initialized data */ |
|||
/*********************************/ |
|||
.data |
|||
szString: .asciz "codeGolf" |
|||
.equ SIZESTRING, . - szString |
|||
/*********************************/ |
|||
/* code section */ |
|||
/*********************************/ |
|||
.text |
|||
.global main |
|||
main: // entry of program |
|||
mov x2,SIZESTRING // string length |
|||
ldr x1,=szString |
|||
mov x0,1 // output Linux standard |
|||
mov x8,64 // code call system "write" |
|||
svc 0 |
|||
mov x0,0 // return code |
|||
mov x8,93 // request to exit program |
|||
svc #0 // perform the system call |
|||
</syntaxhighlight> |
|||
{{Out}} |
|||
<pre> |
|||
Compilation 64 bits Rosetta de codegolf64.s |
|||
-rwx------ 1 u0_a344 u0_a344 1144 May 24 21:48 codegolf64 |
|||
-rw------- 1 u0_a344 u0_a344 960 May 24 21:48 codegolf64.o |
|||
-rw------- 1 u0_a344 u0_a344 813 May 24 21:45 codegolf64.s |
|||
Fin de compilation. |
|||
~/.../rosetta/asm4 $ codegolf64 |
|||
codeGolf~/.../rosetta/asm4 $ |
|||
</pre> |
|||
=={{header|Ada}}== |
=={{header|Ada}}== |