cirosantilli/x86-assembly-cheat
概要
移転先:https://cirosantilli.com/linux-kernel-module-cheat/userland-assembly。コードは https://github.com/cirosantilli/linux-kernel-module-cheat/tree/master/userland/arch/x86_64 にあります。READMEを参照してください。x86 IA-32とx86-64のユーザーランドを扱う、最小限のサンプルを使ったチュートリアルです。実行可能なアサーションを数百件収録し、GDBの便利な設定も紹介しています。I/Oにはlibcを使うため、理論上はOSを問わず利用できます。NASMとGASを扱い、Ubuntu 18.04でテスト済みです。ELFコンテナー、リンク、呼び出し規約について説明します。システムレベルのチートシート:https://github.com/cirosantilli/x86-bare-metal-examples。ARMのチートシート:https://github.com/cirosantilli/arm-assembly-cheat。移転先:https://github.com/cirosantilli/linux-kernel-module-cheat#userland-assembly。READMEを参照してください。x86 IA-32とx86-64のユーザーランドを扱う、最小限のサンプルを使ったチュートリアルです。実行可能なアサーションを数百件収録しています。GDBの便利な設定もあります。I/Oにはlibcを使うため、理論上はOSを問わず利用できます。NASMとGASを扱い、Ubuntu 18.04でテスト済みです。ELFコンテナー、リンク、呼び出し規約を扱います。システムレベルのチートシート:https://github.com/cirosantilli/x86-bare-metal-examples。ARMのチートシート:https://github.com/cirosantilli/arm-assembly-cheat。
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- +1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルx86 Assembly Cheat
THIS REPO HAS MOVED TO: https://github.com/cirosantilli/linux-kernel-module-cheat#userland-assembly
All the most valuable content has already been moved: the bulk of the x86 instruction examples with assertions.
There is some stuff left here, e.g. 32-bit x86 and some useless prose. Maybe one day I'll migrate them, let's see.
No major new features are intended to be added here.
Notable advantages of LKMC repository include:
- a single unified cross arch setup for ARM and x86_64, with cross arch concepts all nicely factored out
- gem5 support. This is because we have integration of QEMU / gem5 / Buildroot setups already done there
- parallel testing. Mostly because the build system there is Python, which is more flexible.
- other stuff I can't remember right now. That setup just has a ton of features, and will continue to get more and more ;-)
The bulk of this repo had been written a long time ago, and so it was semi-crappy. All content that moved to LKMC was reviewed and improved.
In particular, the use of NASM was a bad choice from before I understood that GCC uses GNU GAS assembly by default. I intend to just migrate NASM examples to GAS, and let NASM die: if you really, want NASM, please checkout just before the migration. NASM devs are cool, but GCC wins.
However, the LKMC infrastructure is already working and completely superior, all that is left if to migrate some missing key concept examples there.
Old README
x86 IA-32 and x86-64 userland minimal examples tutorial. Hundreds of runnable asserts. Nice GDB setup. IO done with libc, so OS portable in theory. NASM and GAS covered. Tested in Ubuntu 18.04. Containers (ELF), linking, calling conventions. System land cheat at: https://github.com/cirosantilli/x86-bare-metal-examples, ARM cheat at: https://github.com/cirosantilli/arm-assembly-cheat
- Getting started
- IA-32
- Base concepts
- Instructions
- Data transfer instructions
- Synchronization
- Stack data transfer instructions
- Data transfer instructions
- Calling conventions
- Linux
- x86-64
- x86_64 general principles
- x86_64 instructions
- main
- x86_64 Linux system calls
- x86_64 calling convention
- C from assembly
- Assemblers
- GAS
- GAS Linux hello world
- Symbol scope
- Current address
- Directives
- Macros
- Bibliography
- NASM
- RAM
- local labels
- equ
- ptr
- current address
- Preprocessor
- GAS
- Introduction
- Containers
- Dynamic libraries
- Compiler generated
- Binutils
- Related tutorials
- Bibliography
関連プロジェクトを探す
読み込み中…