8000 GitHub - cclaude42/libasm: 42 - Recoding libc functions in x86-64 Intel Assembly
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cclaude42/libasm

Repository files navigation

LibASM

Recoding certain functions of the standard C Library, but in x86-64 Intel Assembly.

Final grade : 125/125

Mandatory part : 100/100

Bonus : 25/25

How to use it

Using make will create the libasm.a binary.

To include the library in your project, clone the repository in your working tree and compile with the following flags :

gcc -L. -lasm file.c

Available functions

size_t		ft_strlen(const char *s);
int		ft_strcmp(const char *s1, const char *s2);
char		*ft_strcpy(char *dst, const char *src);
char		*ft_strdup(const char *s1);

ssize_t		ft_read(int fildes, void *buf, size_t nbyte);
ssize_t		ft_write(int fildes, const void *buf, size_t nbyte);
void		ft_cat(int fildes);

int		ft_list_size(t_list *lst);
int		ft_list_push_front(t_list **begin_list, void *data);
void		ft_list_sort(t_list **begin_list, int (*cmp)());
void		ft_list_remove_if(t_list **begin_list, void *data_ref, int (*cmp)());
int		ft_atoi_base(char *str, char *base);

Useful links

Assembly Cheat Sheet

About

42 - Recoding libc functions in x86-64 Intel Assembly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0