EgorKurito / libasm

Libasm (42cursus). The project aim is to get a first interaction with assembly language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libasm

Write the following functions in x64 assembly (in the Intel syntax):

int		ft_strlen(char const *str);
int		ft_strcmp(char const *s1, char const *s2);
char		*ft_strcpy(char *dst, char const *src);
ssize_t		ft_write(int fd, void const *buf, size_t nbyte);
ssize_t		ft_read(int fd, void *buf, size_t nbyte);
char		*ft_strdup(char const *s1);

How to use it

Using make will create the libasm.a binary.

If you want to test:

make test

./test.a

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

About

Libasm (42cursus). The project aim is to get a first interaction with assembly language.


Languages

Language:C 81.8%Language:Assembly 11.2%Language:Makefile 7.0%