This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <stdio.h> | |
#include <asm/unistd.h> | |
#include <sys/syscall.h> | |
#ifdef __i386__ | |
#define __NR_lazyk 349 | |
#elif __x86_64__ | |
#define __NR_lazyk 312 | |
#elif __arm__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <stdio.h> | |
#include <asm/unistd.h> | |
#include <sys/syscall.h> | |
#ifdef __i386__ | |
#define __NR_brainfuck 349 | |
#elif __x86_64__ | |
#define __NR_brainfuck 312 | |
#elif __arm__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From b5fae6767cdee2dff093ab296b86926583f85512 Mon Sep 17 00:00:00 2001 | |
From: Hiromu Yakura <hiromu1996@gmail.com> | |
Date: Thu, 8 Dec 2011 15:13:38 +0900 | |
Subject: [PATCH] Add syscall of Lazy K interpreter as sys_lazyk | |
--- | |
arch/arm/include/asm/unistd.h | 1 + | |
arch/arm/kernel/calls.S | 1 + | |
arch/x86/include/asm/unistd_32.h | 3 +- | |
arch/x86/include/asm/unistd_64.h | 2 + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 0696a912ecf5ba37bfb5670a79ec3840271c9591 Mon Sep 17 00:00:00 2001 | |
From: Hiromu Yakura <hiromu1996@gmail.com> | |
Date: Thu, 8 Dec 2011 14:16:56 +0900 | |
Subject: [PATCH] Added syscall of brainfuck interpreter as sys_brainfuck | |
--- | |
arch/arm/include/asm/unistd.h | 1 + | |
arch/arm/kernel/calls.S | 1 + | |
arch/x86/include/asm/unistd_32.h | 5 +- | |
arch/x86/include/asm/unistd_64.h | 2 + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__asm ( | |
".data\n\t" | |
".weak __ildata_included\n\t" | |
".hidden __ildata_included\n\t" | |
".section __ildata, \"wa\"\n\t" | |
".byte 0\n\t" | |
".byte 6\n\t" | |
".byte 0\n\t" | |
".byte 0\n\t" | |
".byte 50\n\t" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__asm__ ( | |
".data\n\t" | |
".weak __ildata_included\n\t" | |
".hidden __ildata_included\n\t" | |
".section __ildata, \"wa\"\n\t" | |
".byte 0\n\t" | |
".byte 6\n\t" | |
".byte 0\n\t" | |
".byte 0\n\t" | |
".byte 50\n\t" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__asm ( | |
".data\n\t" | |
".weak __ildata_included\n\t" | |
".hidden __ildata_included\n\t" | |
".section __ildata, \"wa\"\n\t" | |
".byte 0\n\t" | |
".byte 6\n\t" | |
".byte 0\n\t" | |
".byte 0\n\t" | |
".byte 50\n\t" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int compare(const void *a, const void *b) | |
{ | |
return (*(int *)b - *(int *)a); | |
} | |
int main(void) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <time.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define MAXSIZE 36 | |
#define BLOCK -23 | |
#define RC2P(r,c) ((r)*w+c) | |
#define P2R(p) (p/w) | |
#define P2C(p) (p%w) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Automatically generated make config: don't edit | |
# Linux/x86_64 3.0.0 Kernel Configuration | |
# | |
CONFIG_64BIT=y | |
# CONFIG_X86_32 is not set | |
CONFIG_X86_64=y | |
CONFIG_X86=y | |
CONFIG_INSTRUCTION_DECODER=y | |
CONFIG_OUTPUT_FORMAT="elf64-x86-64" |