This file contains hidden or 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 <boost/spirit/home/prana/meta/unroll_copy.hpp> | |
| #include <cstdio> | |
| int main (void) { | |
| using namespace boost::spirit::prana; | |
| char buffer[35]; | |
| char* it = buffer; |
This file contains hidden or 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 <cstdio> | |
| int main (void) { | |
| char buffer[35]; | |
| for (char i = 0; i < 34; ++i) buffer[i] = 'f'; | |
| buffer[34] = '\0'; | |
| printf("%s\n", buffer); |
This file contains hidden or 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
| .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 |
This file contains hidden or 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
| .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) |
This file contains hidden or 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
| .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 |
This file contains hidden or 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
| .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 |
This file contains hidden or 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
| [ 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) |
This file contains hidden or 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
| 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. |
This file contains hidden or 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
| 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> | |
| }; |
This file contains hidden or 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
| /* 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) ; |