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
| running: "cmake" "/usr/local/google/home/tlively/rust/src/llvm" "-DLLVM_ENABLE_ASSERTIONS=ON" "-DLLVM_TARGETS_TO_BUILD=X86;JSBackend" "-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly;NVPTX;Hexagon" "-DLLVM_INCLUDE_EXAMPLES=OFF" "-DLLVM_INCLUDE_TESTS=OFF" "-DLLVM_INCLUDE_DOCS=OFF" "-DLLVM_ENABLE_ZLIB=OFF" "-DWITH_POLLY=OFF" "-DLLVM_ENABLE_TERMINFO=OFF" "-DLLVM_ENABLE_LIBEDIT=OFF" "-DLLVM_PARALLEL_COMPILE_JOBS=48" "-DLLVM_TARGET_ARCH=x86_64" "-DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-linux-gnu" "-DCMAKE_C_COMPILER=cc" "-DCMAKE_CXX_COMPILER=c++" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_INSTALL_PREFIX=/usr/local/google/home/tlively/rust/build/x86_64-unknown-linux-gnu/llvm" "-DCMAKE_BUILD_TYPE=Debug" |
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 <stdbool.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| // a binary search tree node | |
| typedef struct node | |
| { | |
| int val; | |
| struct node *left; | |
| struct node *right; |
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 <stdbool.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define N_ITEMS 10 | |
| /* Uncomment this section to use linked lists | |
| typedef struct node | |
| { | |
| int val; |
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 <stdbool.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define N_ITEMS 10 | |
| /* Uncomment this section to use linked lists | |
| typedef struct node | |
| { | |
| int val; |
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
| // testing functions | |
| static void log_freelists(); | |
| static bool validate_freelists(); | |
| static void get_freelist_lens(size_t lens[BLOCK_SIZES]); | |
| // test_kalloc | |
| // Run unit tests on the kalloc system. | |
| void test_kalloc() { | |
| assert(validate_freelists()); |
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
| (module | |
| (type $0 (func (param i32 i32 i32 i32) (result i32))) | |
| (import "env" "memory" (memory $1 16384)) | |
| (import "env" "table" (table $timport$2 176438 176438 funcref)) | |
| (import "env" "tableBase" (global $gimport$0 i32)) | |
| (func $0 (; 0 ;) (type $0) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32) | |
| (block $label$1 | |
| (block $label$2 | |
| (block $label$3 | |
| (br_table $label$2 $label$2 $label$2 |
This file has been truncated, but you can view the full file.
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
| ;;; Code generated by J2WASM | |
| (module | |
| (global $java.lang.Object.rtt (rtt 0 $java.lang.Object) (rtt.canon $java.lang.Object)) | |
| (global $TestRunner.rtt (rtt 1 $TestRunner) (rtt.sub $TestRunner (global.get $java.lang.Object.rtt))) | |
| (global $java.beans.Beans.rtt (rtt 1 $java.beans.Beans) (rtt.sub $java.beans.Beans (global.get $java.lang.Object.rtt))) | |
| (global $java.io.Writer.rtt (rtt 1 $java.io.Writer) (rtt.sub $java.io.Writer (global.get $java.lang.Object.rtt))) | |
| (global $java.io.BufferedWriter.rtt (rtt 2 $java.io.BufferedWriter) (rtt.sub $java.io.BufferedWriter (global.get $java.io.Writer.rtt))) | |
| (global $java.io.InputStream.rtt (rtt 1 $java.io.InputStream) (rtt.sub $java.io.InputStream (global.get $java.lang.Object.rtt))) | |
| (global $java.io.ByteArrayInputStream.rtt (rtt 2 $java.io.ByteArrayInputStream) (rtt.sub $java.io.ByteArrayInputStream (global.get $java.io.InputStream.rtt))) | |
| (global $java.io.OutputStream.rtt (rtt 1 $java.io.OutputStream) (rtt.sub $java.io.OutputStream (global.get $java.lang.Object.rtt))) |
This file has been truncated, but you can view the full file.
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
| ;;; Code generated by J2WASM | |
| (module | |
| (global $java.lang.Object.rtt (rtt 0 $java.lang.Object) (rtt.canon $java.lang.Object)) | |
| (global $TestRunner.rtt (rtt 1 $TestRunner) (rtt.sub $TestRunner (global.get $java.lang.Object.rtt))) | |
| (global $java.beans.Beans.rtt (rtt 1 $java.beans.Beans) (rtt.sub $java.beans.Beans (global.get $java.lang.Object.rtt))) | |
| (global $java.io.Writer.rtt (rtt 1 $java.io.Writer) (rtt.sub $java.io.Writer (global.get $java.lang.Object.rtt))) | |
| (global $java.io.BufferedWriter.rtt (rtt 2 $java.io.BufferedWriter) (rtt.sub $java.io.BufferedWriter (global.get $java.io.Writer.rtt))) | |
| (global $java.io.InputStream.rtt (rtt 1 $java.io.InputStream) (rtt.sub $java.io.InputStream (global.get $java.lang.Object.rtt))) | |
| (global $java.io.ByteArrayInputStream.rtt (rtt 2 $java.io.ByteArrayInputStream) (rtt.sub $java.io.ByteArrayInputStream (global.get $java.io.InputStream.rtt))) | |
| (global $java.io.OutputStream.rtt (rtt 1 $java.io.OutputStream) (rtt.sub $java.io.OutputStream (global.get $java.lang.Object.rtt))) |
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 <assert.h> | |
| #include <fcntl.h> | |
| #include <pthread.h> | |
| #include <stdbool.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <time.h> | |
| #include <unistd.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
| <script> | |
| console.log('Starting up'); | |
| var receiverCode = '(' + (() => { | |
| console.log('Hello from receiver'); | |
| self.onmessage = (msg) => { | |
| if (typeof msg.data === 'string') { | |
| console.log('received from main:', msg.data); | |
| } else { |
OlderNewer