Git Product home page Git Product logo

libasm's Introduction

LIBASM

Development environment

1. Homebrew installation

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

2. nasm installation

brew install nasm 

Getting started

# For library
make

# For test
make test

Tester

  • libasm_test

    git clone https://github.com/cacharle/libasm_test.git
  • Libasm_Unit_Tests

    git clone https://github.com/valentinllpz/Libasm_Unit_Tests.git

Rules

  • You must write 64 bits ASM. Beware of the "calling convention".

  • You can’t do inline ASM, you must do ’.s’ files.

  • You must compile your assembly code with nasm.

  • You must use the Intel syntax, not the AT&T.

  • The library must be called libasm.a.

  • You must submit a main that will test your functions and that will compile with your library to show that it’s functional.

  • You must rewrite the following functions in asm:

    • ft_strlen (man 3 strlen)
    • ft_strcpy (man 3 strcpy)
    • ft_strcmp (man 3 strcmp)
    • ft_write (man 2 write)
    • ft_read (man 2 read)
    • ft_strdup (man 3 strdup, you can call to malloc)
  • You must check for errors during syscalls and properly set them when needed

  • Your code must set the variable errno properly.

  • For that, you are allowed to call the extern ___error.

libasm's People

Contributors

ykoh42 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.