-
Add Graal JIT Compilation to Your JVM Language in 5 Steps, A Tutorial http://stefan-marr.de/2015/11/add-graal-jit-compilation-to-your-jvm-language-in-5-easy-steps-step-1/
-
The SimpleLanguage, an example of using Truffle with great JavaDocs. It is the officle getting-started project: https://github.com/graalvm/simplelanguage
-
Truffle Tutorial, Christan Wimmer, PLDI 2016, 3h recording https://youtu.be/FJY96_6Y3a4 Slides
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
| // author: fangjun kuang <csukuangfj at gmail dot com> | |
| // date: Apr. 22, 2019 | |
| // refer to http://www.topherlee.com/software/pcm-tut-wavformat.html | |
| #include <fstream> | |
| #include <iostream> | |
| typedef struct WAV_HEADER { | |
| /* RIFF Chunk Descriptor */ |
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
| Fatal error: Implicit exception thrown in code where such exceptions are fatal errors | |
| Printing Instructions (ip=0x00007f9bc3bc5c60): | |
| 0x00007f9bc3bc5c40: 0x00 0x41 0xc7 0x87 0x04 0x01 0x00 0x00 0xfe 0xfe 0xfe 0x7e 0x48 0x8b 0x7c 0x24 | |
| 0x00007f9bc3bc5c50: 0x20 0x48 0x8b 0x74 0x24 0x10 0x48 0x8b 0x54 0x24 0x18 0xe8 0x60 0xfd 0xff 0xff | |
| 0x00007f9bc3bc5c60: 0x90 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc | |
| 0x00007f9bc3bc5c70: 0x48 0x83 0xec 0x18 0x49 0x3b 0x67 0x18 0x0f 0x86 0xe1 0x00 0x00 0x00 0x49 0x3b | |
| Top of stack (sp=0x00007f9c14754130): | |
| 0x00007f9c14754130: 0x0000000000000000 0x0000000000000000 |
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
| If you've got local source code you want to add to a new remote new git repository, the following instructions may be of help | |
| 1. Create the remote repository, and get the URL such as git://github.com/youruser/somename.git | |
| 2. If your local GIT repo is already set up, skips steps 2 and 3 | |
| 3. Initialize your local project directory as a local git repo: git init | |
| 4. Add your files to the git tree using: git add . | |
| 5. To do an initial commit type: git commit -m 'initial commit comment' |