Mercurial > hg > Members > anatofuz > slides
comparison slides/2018/05/18/memo.txt @ 45:f5dac10540d7
auto-Update generated slides by script
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 29 May 2018 18:44:59 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
44:8c7be076e6e6 | 45:f5dac10540d7 |
---|---|
1 | |
2 moar.h | |
3 | |
4 | |
5 l.41あたり | |
6 | |
7 ```c | |
8 /* Sized types. */ | |
9 typedef int8_t MVMint8; | |
10 typedef uint8_t MVMuint8; | |
11 typedef int16_t MVMint16; | |
12 typedef uint16_t MVMuint16; | |
13 typedef int32_t MVMint32; | |
14 typedef uint32_t MVMuint32; | |
15 typedef int64_t MVMint64; | |
16 typedef uint64_t MVMuint64; | |
17 typedef float MVMnum32; | |
18 typedef double MVMnum64; | |
19 ``` | |
20 | |
21 ただのtypes のSizedのフラグ | |
22 | |
23 src/core/ops.h でdefineされている | |
24 | |
25 | |
26 ただの変数 | |
27 | |
28 ``` | |
29 /* This file is generated from src/core/oplist by tools/update_ops.p6. */ | |
30 | |
31 /* Op name defines. */ | |
32 #define MVM_OP_no_op 0 | |
33 #define MVM_OP_const_i8 1 | |
34 #define MVM_OP_const_i16 2 | |
35 #define MVM_OP_const_i32 3 | |
36 #define MVM_OP_const_i64 4 | |
37 #define MVM_OP_const_n32 5 | |
38 #define MVM_OP_const_n64 6 | |
39 #define MVM_OP_const_s 7 | |
40 #define MVM_OP_set 8 | |
41 #define MVM_OP_extend_u8 9 | |
42 #define MVM_OP_extend_u16 10 | |
43 #define MVM_OP_extend_u32 11 | |
44 #define MVM_OP_extend_i8 12 | |
45 #define MVM_OP_extend_i16 13 | |
46 #define MVM_OP_extend_i32 14 | |
47 #define MVM_OP_trunc_u8 15 | |
48 #define MVM_OP_trunc_u16 16 | |
49 ``` | |
50 | |
51 `ops.h`は874行でそれぞれの数に対してdefineされている. | |
52 わりと厳しい |