Update
This commit is contained in:
parent
124b9d1e7c
commit
3f374a4713
85 changed files with 2281 additions and 2272 deletions
14
bytecode.md
14
bytecode.md
|
@ -242,12 +242,12 @@ And the bytecode we get (e.g. with `python -m dis program.py`):
|
|||
12 LOAD_NAME 2 (raw_input)
|
||||
15 CALL_FUNCTION 0
|
||||
18 LOAD_CONST 1 (0)
|
||||
21 BINARY_SUBSCR
|
||||
21 BINARY_SUBSCR
|
||||
22 CALL_FUNCTION 1
|
||||
25 LOAD_NAME 1 (ord)
|
||||
28 LOAD_CONST 2 ('0')
|
||||
31 CALL_FUNCTION 1
|
||||
34 BINARY_SUBTRACT
|
||||
34 BINARY_SUBTRACT
|
||||
35 STORE_NAME 3 (n)
|
||||
|
||||
8 38 SETUP_LOOP 43 (to 84)
|
||||
|
@ -255,15 +255,15 @@ And the bytecode we get (e.g. with `python -m dis program.py`):
|
|||
44 POP_JUMP_IF_FALSE 83
|
||||
|
||||
9 47 LOAD_NAME 3 (n)
|
||||
50 PRINT_ITEM
|
||||
51 PRINT_NEWLINE
|
||||
50 PRINT_ITEM
|
||||
51 PRINT_NEWLINE
|
||||
|
||||
11 52 LOAD_NAME 3 (n)
|
||||
55 LOAD_CONST 3 (1)
|
||||
58 COMPARE_OP 2 (==)
|
||||
61 POP_JUMP_IF_FALSE 68
|
||||
|
||||
12 64 BREAK_LOOP
|
||||
12 64 BREAK_LOOP
|
||||
65 JUMP_FORWARD 0 (to 68)
|
||||
|
||||
14 >> 68 LOAD_NAME 0 (next)
|
||||
|
@ -271,11 +271,11 @@ And the bytecode we get (e.g. with `python -m dis program.py`):
|
|||
74 CALL_FUNCTION 1
|
||||
77 STORE_NAME 3 (n)
|
||||
80 JUMP_ABSOLUTE 41
|
||||
>> 83 POP_BLOCK
|
||||
>> 83 POP_BLOCK
|
||||
>> 84 LOAD_CONST 4 (None)
|
||||
87 RETURN_VALUE
|
||||
```
|
||||
|
||||
TODO: make sense of it and analyze it
|
||||
|
||||
TODO: web assembly
|
||||
TODO: web assembly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue