Skip to content

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

Notifications You must be signed in to change notification settings

EgorKurito/libasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks