Add build instructions
This commit is contained in:
parent
8447ef703b
commit
48f1f2fa77
12
README.md
12
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.
|
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!
|
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.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user