Skip to content

Libasm is an individual project at 42 where we have to recode some function in C in assembly language

Notifications You must be signed in to change notification settings

hael-mou/42Libasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 LIBASM

badge libasm

I. What is the Libasm ?

Libasm is an individual project at 42 where we have to recode some function in C in assembly language

  • ASM 64 Bits
  • Intel Syntax

II. Usage

- Platforms Supported :

  • Linux x86_64
  • MacOS x86_64
  • MacOS ARM64 (use Apple’s Rosetta 2)

- Prerequisites :

- Build Instructions :

clone the repository

$ git clone https://github.com/hael-mou/42Libasm.git
$ cd libasm

compile libasm.a

$ make

run tests

$ make test

III. Functions

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 *))

About

Libasm is an individual project at 42 where we have to recode some function in C in assembly language

Topics

Resources

Stars

Watchers

Forks