diff --git a/README.md b/README.md index 8014408..fce2c54 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,15 @@ Each function will be available as its own file, intended to make it easy to imp The overall ambition is to be able to use this library to losslessly abstract the most-optimal instructions one would normally write by hand - but with an easier manner of use, e.g. providing macros and functions to do everything that's required. Ultimately, it may be impossible to fully equal "the most optimal code" when using functional calls and generic abstractions, since each problem may have more optimal corner-cuttings which result from eliminating the parts that aren't necessary from the generic implementation, but without having to worry about any usual C-related standards, we can still perhaps make a good crack at the problem nevertheless! + +## Usage +To compile a particular file to an object: +```bash +gcc -c -g strcpy.S +``` +To then link to an executable (only if there is a \_start symbol defined somewhere): +```bash +ld strcpy.o +``` +WIP: I am still working on specifying a custom entry point so we don't have to play along with GNU Assembler's desires. +