Skip to content

Instantly share code, notes, and snippets.

View brycelelbach's full-sized avatar

Bryce Adelstein Lelbach brycelelbach

View GitHub Profile
#include <boost/spirit/home/prana/meta/unroll_copy.hpp>
#include <cstdio>
int main (void) {
using namespace boost::spirit::prana;
char buffer[35];
char* it = buffer;
#include <cstdio>
int main (void) {
char buffer[35];
for (char i = 0; i < 34; ++i) buffer[i] = 'f';
buffer[34] = '\0';
printf("%s\n", buffer);
.file "unroll_for.cpp"
.text
.globl main
.type main, @function
main:
.LFB12:
.cfi_startproc
subq $56, %rsp
.cfi_def_cfa_offset 64
movq %rsp, %rax
.file "unroll_meta.cpp"
.text
.globl main
.type main, @function
main:
.LFB43:
.cfi_startproc
subq $56, %rsp
.cfi_def_cfa_offset 64
movb $102, (%rsp)
.file "unroll_for.cpp"
.text
.p2align 4,,15
.globl main
.type main, @function
main:
.LFB12:
.cfi_startproc
subq $56, %rsp
.cfi_def_cfa_offset 64
.file "unroll_meta.cpp"
.text
.p2align 4,,15
.globl main
.type main, @function
main:
.LFB43:
.cfi_startproc
subq $56, %rsp
.cfi_def_cfa_offset 64
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.36-clang-00004-g77a555c (wash@Pegasus) (Thread model: posix) #6 SMP Sun Oct 24 17:50:46 EDT 2010
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-2.6.36-clang-00004-g77a555c root=UUID=c345e709-e26a-4015-9808-6b5ee79d42d1 ro
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
[ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
[ 0.000000] BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
[ 0.000000] BIOS-e820: 0000000000100000 - 0000000040000000 (usable)
[ 0.000000] BIOS-e820: 0000000040000000 - 0000000050000000 (reserved)
Mon Oct 25 02:17:28 2010: Setting parameters of disc: (none).
Mon Oct 25 02:17:28 2010: Activating swap...done.
Mon Oct 25 02:17:28 2010: Checking root file system...fsck from util-linux-ng 2.16.2
Mon Oct 25 02:17:28 2010: /dev/sda3: clean, 789212/9158656 files, 13555354/36621093 blocks
Mon Oct 25 02:17:28 2010: done.
Mon Oct 25 02:17:28 2010: Cleaning up ifupdown....
Mon Oct 25 02:17:28 2010: Setting up networking....
Mon Oct 25 02:17:28 2010: Activating lvm and md swap...done.
Mon Oct 25 02:17:28 2010: Checking file systems...fsck from util-linux-ng 2.16.2
Mon Oct 25 02:17:28 2010: done.
const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
/*
*Smells like a like a compiler bug -- it doesn't work
*when the & below is removed.
*/
[0 ... __NR_syscall_max] = &sys_ni_syscall,
#include <asm/unistd_64.h>
};
/* System call table for x86-64. */
#include <linux/linkage.h>
#include <linux/sys.h>
#include <linux/cache.h>
#include <asm/asm-offsets.h>
#define __NO_STUBS
#define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ;