- アセンブリ
- 目的
- マシンコードの抽象化
- ニーモニックコードへの符号化
- ニーモニックコードへの集約
- 複数の Instruction を jmp というニーモニックに集約できる
- ラベルの利用
- マシンコードの抽象化
- 目的
- 具体例
This file contains 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
[package] | |
name = "diesel-postgres" | |
version = "0.1.0" | |
authors = ["AtsukiTak <takatomgoo@gmail.com>"] | |
edition = "2018" | |
[dependencies] | |
anyhow = "1.0" | |
diesel = { version = "1.4", features = ["postgres", "r2d2"] } |
This file contains 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
#!/bin/bash | |
print_schema() { | |
PORT=10042 | |
TMP_PG_URL="postgres://postgres:postgres@localhost:${PORT}/postgres" | |
SCHEMA_FILE="src/pg/schema.rs" | |
CONTAINER_NAME="diesel-print-schema" | |
docker stop ${CONTAINER_NAME} || true | |
docker run -d --rm --name ${CONTAINER_NAME} -p ${PORT}:5432 postgres |
This file contains 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
" Vim color file | |
" | |
" Author: Tomas Restrepo <tomas@winterdom.com> | |
" | |
" Note: Based on the monokai theme for textmate | |
" by Wimer Hazenberg and its darker variant | |
" by Hamish Stuart Macpherson | |
" | |
hi clear |