github generated gh-pages branch
This commit is contained in:
4
l/.gitignore
vendored
4
l/.gitignore
vendored
@@ -1,4 +0,0 @@
|
||||
*.swp*
|
||||
*tmp*
|
||||
*swp*
|
||||
*~
|
||||
@@ -1,4 +0,0 @@
|
||||
\documentclass{article}
|
||||
\begin{document}
|
||||
Hello World
|
||||
\end{document}
|
||||
16
l/limbo.b
16
l/limbo.b
@@ -1,16 +0,0 @@
|
||||
implement Hello;
|
||||
|
||||
include "sys.m";
|
||||
sys: Sys;
|
||||
include "draw.m";
|
||||
|
||||
Hello: module
|
||||
{
|
||||
init: fn(ctxt: ref Draw->Context, argv: list of string);
|
||||
};
|
||||
|
||||
init(ctxt: ref Draw->Context, argv: list of string)
|
||||
{
|
||||
sys = load Sys Sys->PATH;
|
||||
sys->print("Hello World\n");
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
# nasm linux-x86.nasm -o linux-x86.o -f elf && ld linux-x86.o -m elf_i386 -o linux-x86
|
||||
|
||||
section .data
|
||||
msg db "Hello World", 0xa
|
||||
len 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 0x80
|
||||
@@ -1,4 +0,0 @@
|
||||
; LISP
|
||||
(DEFUN HELLO-WORLD ()
|
||||
(PRINT (LIST 'HELLO 'WORLD))
|
||||
)
|
||||
14
l/llvm.ll
14
l/llvm.ll
@@ -1,14 +0,0 @@
|
||||
; llvm-as llvm.ll
|
||||
; x86 assembly: llc llvm.bc -o llvm.s -march x86
|
||||
; interpreter: lli llvm.bc
|
||||
|
||||
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
|
||||
@.str = internal constant [12 x i8] c"Hello World\00"
|
||||
|
||||
; puts from libc
|
||||
declare i32 @puts(i8*)
|
||||
|
||||
define i32 @main(...) {
|
||||
call i32 @puts(i8* getelementptr([12 x i8]* @.str, i32 0, i32 0))
|
||||
ret i32 0
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
HAI
|
||||
CAN HAS STDIO?
|
||||
VISIBLE "Hello World"
|
||||
KTHXBYE
|
||||
Reference in New Issue
Block a user