I hereby claim:
- I am sam-falvo on github.
- I am saf2 (https://keybase.io/saf2) on keybase.
- I have a public key whose fingerprint is 07B8 1461 A0DE C658 D4F3 ED4C 62C5 0196 16AF 1914
To claim this, I am signing this object:
package main | |
import "fmt" | |
// ====== Generic Stack implementation | |
package genericStack | |
type GenericStack struct { | |
space []interface{} |
[global add64] | |
[global sub64] | |
; | |
; This function adds two 64-bit values, passed by reference on the | |
; stack. The values are passed by reference because the LCC compiler | |
; does not support 64 bit integers like GCC does. | |
; | |
; result |
#include <signal.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <assert.h> | |
/****** fsobj.h ******/ | |
struct scb; |
$ bin/fc from m1.fc list /Users/sfalvo/git/kestrel/3 :: Sat Dec 20 09:38:10 PST 2014 | |
This is fc, the machine Forth compiler. | |
Version 0.1.0 | |
cold: ($00000000) | |
6F 00 00 00 JAL X0, 0 ($00000004) | |
.cold: ($00000004) | |
23 30 17 00 SD X1, X14, 0 | |
13 07 87 FF ADDI X14, X14, -8 |
\ Milestone 1 -- Basic Liveness Test | |
DEFER cold | |
: .cold 65 $FFFF00 C! BIS ; | |
' .cold IS cold |
I hereby claim:
To claim this, I am signing this object:
align 8 | |
dword $0E00000000000000 | |
emit: | |
ld x16 , 0(dsp) | |
addi dsp, dsp, 8 | |
LGP1 : | |
auipc gp, 0 | |
ld x17 , (emit-LGP1 )-8 (gp) | |
sb x16 , 0(x17 ) | |
jalr x0, 0(ra) |
500000 constant //dataset | |
//dataset value /dataset | |
: /dataset-1 | |
/dataset 1 cells - ; | |
create unsorted ( rely on random contents from ASLR ) | |
16 , 15 , 14 , 13 , 12 , 11 , 10 , 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , | |
//dataset allot |
Intel Decodes CISC to RISC, | |
Can We Decode RISC-V to MISC? | |
Samuel A. Falvo II | |
2016-Aug-27 | |
The first thing we need to do when invoking SIE is save the current thread state. | |
The invokING thread called us via an ECALL, so some of this state is in mstatus and mepc. | |
So, save it. | |
_SIE: ; A0 -> SIEBK to invoke. | |
csrrw t0, mscratch, x0 ; mscratch = t0, t0 = pointer to current SIEBK. | |
sd x1, _X1(t0) | |
sd x2, _X2(t0) | |
... | |
sd x31, _X31(t0) |