amdjadouxx / minilib_assembleur

implementation of some functions of the C library in assembly x86-64

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MINILIB_ASM

This project has been produce for the x86-64 structure (on linux)

Help.md

if you want to start assembly, I made a french documentation on assembly on "Help.md" (A file in this repository)

This is a shared library, which implement my version (in assembly language) of some functions of the C library

List of functions re-implemented:

  • memcpy
  • memmove
  • memset
  • strcasecmp
  • strchr
  • strcmp
  • strcspn
  • strlen
  • strncmp
  • strpbrk
  • strrchr
  • strstr

How to create the library

  make

Some links

Documentation

Tips/Astuces

Réinitialiser tout les registres avant de les utiliser!!

Différents noms de labels entre fonctions d'une même librairie

La stack est comme une pile d'assiette, donc pour lire 1, puis 2, puis 3 --> on pushera 3, puis 2, puis 1

Some useful commands (on linux):

Voir tout les labels dispo dans une librairie:

  nm -D {librairie}

Compile assembly language

```bash
nasm -f elf64 {fichier.asm}

ld {fichier.o}
```

Link some dynamics library when compiling

ld {fichier.o} -lc -dynamic-linker /lib64/ld-linux-x86-64.so.2

About

implementation of some functions of the C library in assembly x86-64


Languages

Language:Assembly 79.6%Language:Makefile 15.0%Language:C 5.4%