Libasm is an individual project at 42 where we have to recode some function in C in assembly language
- ASM 64 Bits
- Intel Syntax
- Linux x86_64
- MacOS x86_64
- MacOS ARM64 (use Apple’s Rosetta 2)
clone the repository
$ git clone https://github.com/hael-mou/42Libasm.git
$ cd libasmcompile libasm.a
$ makerun tests
$ make test| Function | Synopsis |
|---|---|
| ft_strlen | size_t ft_strlen(const char *s) |
| ft_strcpy | char *ft_strcpy(char *dest, const char *src) |
| ft_strcmp | int ft_strcmp(const char *s1, const char *s2) |
| ft_write | ssize_t ft_write(int fd, const void *buf, size_t count) |
| ft_read | ssize_t ft_read(int fd, void *buf, size_t count) |
| ft_strdup | char *ft_strdup(const char *s) |
| ft_atoi_base | int ft_atoi_base(char *str, char *base) |
| ft_list_push_front | void ft_list_push_front(t_list **begin_list, void *data) |
| ft_list_size | int ft_list_size(t_list *begin_list) |
| ft_list_sort | void ft_list_sort(t_list **begin_list, int (*cmp)(void *, void *)) |
| ft_list_remove_if | void ft_list_remove_if(t_list **begin_list, void *data_ref,mint (*cmp)(void *, void *), void (*free_fct)(void *)) |
